spring boot和spring security整合 工具idea 命名空间没有提示

idea pom文件引入该坐标,可以在html界面进行提示,但是标签没有效果

        <dependency>
            <groupId>org.thymeleaf.extras</groupId>
            <artifactId>thymeleaf-extras-springsecurity4</artifactId>
            <version>3.0.4.RELEASE</version>
        </dependency>

idea pom文件引入该坐标,在html界面不能提示,但是标签有效果

        <dependency>
            <groupId>org.thymeleaf.extras</groupId>
            <artifactId>thymeleaf-extras-springsecurity5</artifactId>
            <version>3.0.4.RELEASE</version>
        </dependency>

最后发现在 html导入的一下标签,完美解决提示和效果问题,踩坑两小时,博文三两句!!!

<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
   
发布了9 篇原创文章 · 获赞 4 · 访问量 484

猜你喜欢

转载自blog.csdn.net/qq_35818188/article/details/104131873