版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/soha_dong/article/details/87727034
spring boot2.1.2 整合spring Security+thymeleaf 遇到页面标签无效,html文件中
sec:authorize="isAuthenticated()"
此类标签无效,是版本不对应的问题,只需要在pom文件中加入一些依赖
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity5</artifactId>
<version>3.0.4.RELEASE</version>
</dependency>