Thymeleaf Integration

Learn how to use the Thymeleaf Spring Security integration to improve the user experience.

User-specific views

To improve the user experience, we should hide any buttons, links, or other content that the logged-in user is not supposed to see. To do that, we can use the Thymeleaf Spring Security integration.

Let’s start by adding the needed dependency in pom.xml:

Get hands-on with 1400+ tech skills courses.