How can I display the current logged in User with Spring Boot Thymeleaf?

后端 未结 4 653
故里飘歌
故里飘歌 2021-01-18 19:18

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

4条回答
  •  生来不讨喜
    2021-01-18 19:51

    You can use Thymeleaf extras for display authenticated user details.

    Thymeleaf Extras Springsecurity4

        
提交回复
热议问题