在springboot与thymeleaf与springsecurity中验证失效

在模板中即使添加了 

xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"
但是如果没有引入依赖
<dependency>
    <groupId>org.thymeleaf.extras</groupId>
    <artifactId>thymeleaf-extras-springsecurity4</artifactId>
</dependency>

  仍然会出错

posted @ 2018-09-27 22:19  zezezeze  阅读(939)  评论(0编辑  收藏  举报