SpringBoot集成Thymeleaf:
采用maven管理 在pom.xml文件中添加依赖配置:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
在页面添加头文件
<html xmlns:th="http://www.thymeleaf.org">
Thymeleaf 基本语法:
https://www.cnblogs.com/itdragon/archive/2018/04/13/8724291.html