Closed YLLQQ closed 5 years ago
If you use the version of Spring Boot (2.0.5) that's used in this example, everything should work just fine.
The auth SpEL stuff is in org.thymeleaf.extras:thymeleaf-extras-springsecurity4. You probably need to update this if you're using Spring Security 5.
https://github.com/thymeleaf/thymeleaf-extras-springsecurity
It looks like the syntax has changed for 5. From https://www.thymeleaf.org/doc/articles/springsecurity.html:
<div sec:authorize="isAuthenticated()">
This content is only shown to authenticated users.
</div>
Hope this helps!
I create a new project by maven, but there are some exceptions.Could you help me to solve it?
spring-boot version is 2.1.4.RELEASE
pom.xml
index.html
exception is