将 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>

最新文章

  1. 17、ASP.NET MVC入门到精通——Spring.net入门
  2. Quartz2D复习(四) --- 图层CALayer和动画CAAnimation
  3. Locality Sensitive Hash 局部敏感哈希
  4. 《C#高级编程》学习笔记------C#中的事件和委托
  5. WebDriverExtensionsByC#
  6. 值初始化-new
  7. define定义方法
  8. VMware workstation12 pro安装Ubuntu14.04LTS过程笔记
  9. SQL Server阻止了对组件xp_cmdshell过程的解决方案 分类: SQL Server 2015-03-05 08:31 305人阅读 评论(0) 收藏
  10. 【socket.io研究】3.手机网页间聊天核心问题
  11. [solaris]odbc-oracle,简单测试
  12. 用C语言写一个程序,得出当前系统的整形数字长(16位,32位,64位)等,不能使用sizeof()
  13. poj 3744 Scout YYF I (可能性DP+矩阵高速功率)
  14. leetcode第18题--Letter Combinations of a Phone Number
  15. SpiderMonkey js引擎的静态编译与使用
  16. springboot集成redis(mybatis、分布式session)
  17. JavaScript splice() 方法和JavaScript split() 方法
  18. php操作redis数据库方法总结
  19. 聊天机器人(chatbot)终极指南:自然语言处理(NLP)和深度机器学习(Deep Machine Learning)
  20. thymeleaf给bootstrap自定义变量赋值

热门文章

  1. Python3之类和实例继承和多态
  2. 关于一些初学Unity的基本操作和自己的理解
  3. IntelliJ IDEA 简单设置
  4. 如何使用Curator监听zookeeper事件变化
  5. Java面试 - 在Java中, 既然构造方法是一个方法,那么为什么不使用void 定义呢?
  6. C语言--函数嵌套调用
  7. Oracle游标的简易用法
  8. javaIO -- InputStream和OutStream
  9. SrpingBoot入门到入坟04-配置文件
  10. gin shoudBind