1.pom文件中增加如下依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
2.html页面放入到resources/templates 或者 resources/static 目录下
3.yml文件中做如下配置:
spring:
thymeleaf:
cache: true
prefix: classpath:/templates/jsp/
mode: HTML5