文章详情页
浅谈spring boot使用thymeleaf版本的问题
浏览:13日期:2023-06-27 14:36:40
spring boot使用thymeleaf版本问题
Spring boot默认使用的是thymeleaf的2版本,这个版本比较低,有些功能不支持,需要切换成3版本
在properties中加入<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version><thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version>

<properties><thymeleaf.version>3.0.11.RELEASE</thymeleaf.version><thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version></properties>
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
以上为个人经验,希望能给大家一个参考,也希望大家多多支持好吧啦网。
标签:
Spring
相关文章:
1. docker /var/lib/docker/aufs/mnt 目录清理方法2. python+excel接口自动化获取token并作为请求参数进行传参操作3. Vuex localStorage的具体使用4. python GUI库图形界面开发之PyQt5中QWebEngineView内嵌网页与Python的数据交互传参详细方法实例5. Notepad++如何安装Python插件?Notepad++插件怎么装?6. 使用Android studio查看Kotlin的字节码教程7. Python matplotlib画图时图例说明(legend)放到图像外侧详解8. 6个常见的 PHP 安全性攻击实例和阻止方法9. 《CSS3实战》笔记--渐变设计(三)10. ASP.NET泛型三之使用协变和逆变实现类型转换
排行榜

网公网安备