Thymeleaf整合到Spring Security,标签sec不起作用
2024-08-27 12:44:42
将 pom 文件中的 thymeleaf-extras-springsecurity4 依赖改成 thymeleaf-extras-springsecurity5
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity5</artifactId>
</dependency>
还要在 HTML 页面引入约束
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
最新文章
- 17、ASP.NET MVC入门到精通——Spring.net入门
- Quartz2D复习(四) --- 图层CALayer和动画CAAnimation
- Locality Sensitive Hash 局部敏感哈希
- 《C#高级编程》学习笔记------C#中的事件和委托
- WebDriverExtensionsByC#
- 值初始化-new
- define定义方法
- VMware workstation12 pro安装Ubuntu14.04LTS过程笔记
- SQL Server阻止了对组件xp_cmdshell过程的解决方案 分类: SQL Server 2015-03-05 08:31 305人阅读 评论(0) 收藏
- 【socket.io研究】3.手机网页间聊天核心问题
- [solaris]odbc-oracle,简单测试
- 用C语言写一个程序,得出当前系统的整形数字长(16位,32位,64位)等,不能使用sizeof()
- poj 3744 Scout YYF I (可能性DP+矩阵高速功率)
- leetcode第18题--Letter Combinations of a Phone Number
- SpiderMonkey js引擎的静态编译与使用
- springboot集成redis(mybatis、分布式session)
- JavaScript splice() 方法和JavaScript split() 方法
- php操作redis数据库方法总结
- 聊天机器人(chatbot)终极指南:自然语言处理(NLP)和深度机器学习(Deep Machine Learning)
- thymeleaf给bootstrap自定义变量赋值