在springboot与thymeleaf与springsecurity中验证失效
在模板中即使添加了
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"
但是如果没有引入依赖
<dependency> <groupId>org.thymeleaf.extras</groupId> <artifactId>thymeleaf-extras-springsecurity4</artifactId> </dependency>
仍然会出错