I am trying to display the details of the current user however I keep getting errors. I tried accessing the authenticated user from the template but that did not work as I w
Reference (4. Spring Security Dialect):
https://www.thymeleaf.org/doc/articles/springsecurity.html
Add dependencies pom.xml
org.thymeleaf.extras thymeleaf-extras-springsecurity4
and the view (Thymeleaf):
Authenticated user roles: Logged user: | Roles:
I hope you serve them