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: