好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

浅谈spring boot使用thymeleaf版本的问题

spring boot使用thymeleaf版本问题

Spring boot默认使用的是thymeleaf的2版本,这个版本比较低,有些功能不支持,需要切换成3版本

在properties中加入

?

1

2

< thymeleaf.version >3.0.9.RELEASE</ thymeleaf.version >

< thymeleaf-layout-dialect.version >2.1.1</ thymeleaf-layout-dialect.version >

thymeleaf在Maven的版本配置

?

1

2

3

4

< properties >

         < thymeleaf.version >3.0.11.RELEASE</ thymeleaf.version >

         < thymeleaf-layout-dialect.version >2.1.1</ thymeleaf-layout-dialect.version >

</ properties >

?

1

2

3

4

< dependency >

            < groupId >org.springframework.boot</ groupId >

            < artifactId >spring-boot-starter-thymeleaf</ artifactId >

</ dependency >

以上为个人经验,希望能给大家一个参考,也希望大家多多支持。

原文链接:https://blog.csdn.net/qq_37570296/article/details/81559434

查看更多关于浅谈spring boot使用thymeleaf版本的问题的详细内容...

  阅读:19次