I really new in Spring Boot and Thymeleaf and I working on a sample project which is implementing Spring Security. And I also want to use Thymeleaf Security Dialect for my project. As I read there is no need to create a configration for Security Dialect in case of Spring Boot. First what I want to achieve is to show the logged in user in the view. What I have done so far:
I added this div to view:
<div sec:authentication="name">
The value of the "name" property of the authentication object should appear here.
</div>
And added a dependecy to pom.xml:
<!-- https://mvnrepository.com/artifact/org.thymeleaf.extras/thymeleaf-extras-springsecurity4 -->
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
<version>3.0.0.RELEASE</version>
</dependency>
If anybody has any idea please let me know.