采用的配置依赖如下:
<!--thymeleaf依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<properties>
<!--3相比2极大的提高了效率,并且不需要标签闭合,类似的link,img等都有了很好的支持,按照如下配置即可-->
<thymeleaf.version>3.0.0.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.0.0</thymeleaf-layout-dialect.version>
</properties>

本文介绍如何配置Thymeleaf 3以提高效率并简化模板语法,包括使用spring-boot-starter-thymeleaf依赖及指定Thymeleaf和thymeleaf-layout-dialect版本。
139

被折叠的 条评论
为什么被折叠?



