Spring Boot推荐使用thymeleaf : 语法更简单 , 功能更强大 ;
引入thymeleaf :
<!--引入thymeleaf模板引擎-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
默认使用的是2.1.6版本 , 选用3.0.9版本 :

引入成功后会有相关的依赖jar:

本文介绍在SpringBoot中如何引入并使用Thymeleaf模板引擎,对比2.1.6版本,推荐使用功能更强大的3.0.9版本。
2714

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



