1,引入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<properties>
<java.version>1.8</java.version>
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
<!--布局功能的支持-->
<thymeleaf-layout-dialect.version>2.2.2</thymeleaf-layout-dialect.version>
</properties>
2,语法
0,导入themeleaf名称空间
1,导入themeleaf名称空间
<html xmlns:th="http://www.thymeleaf.org">
</html>
2,相关功能标签
3,类似jsp的处理数据的语法有很多,我暂时用不到,先不记录了,以后要用到之前再来记录一下