一、修改thymeleaf属性配置

spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.encoding=UTF-
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=false

二、添加依赖(LEGACYHTML5需要搭配一个额外的库NekoHTML才可用)

<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.</version>
</dependency>

最新文章

  1. SQL Server CONVERT() 截取日期
  2. 【转】封装Lua for C#
  3. java读取word内容
  4. 通过反射执行get、set方法
  5. Spring aop 实现异常拦截
  6. 有关C++ std::string 类的类型转换 其他语言永远无法理解的伤
  7. ‘char *&#39; differs in levels of indirection from &#39;int&#39;
  8. codefroce D. Powerful array[初识块状数组]
  9. 纯Python综合图像处理小工具(1)分通道直方图
  10. TableView的性能优化
  11. tomcat在centos下的操作
  12. cocos2d中个类之间的关系
  13. JQuery官方学习资料(译):JQuery对象
  14. Kotlin 或将取代 Java&mdash;&mdash;《Java 编程思想》作者 Bruce Eckel [转]
  15. TP中的图片水印
  16. Cisco Common Service Platform Collector - Hardcoded Credentials(CVE-2019-1723)
  17. angular7一周学习
  18. 圆桌的项目Alpha冲刺(团队)
  19. day 57 data 插件 表的增删改查
  20. 学习5_STM32--外设通信方式

热门文章

  1. BFS,优先队列优化
  2. Netty使用(一)
  3. LC 835. Image Overlap
  4. ShockUtil振动工具类
  5. input 表单
  6. 一百二十五:CMS系统之首页轮播实现
  7. 转:SpringMVC 4.1 新特性(二)内容协商视图
  8. xiaopiu产品原型设计与团队实时协作平台
  9. v-on可以监听多个方法吗?
  10. vue如何监听键盘事件中的按键?