本次演示基于IDEA springboot项目
首先加入相关依赖 如图
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
这是我自己的简单应用 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20200330131127882.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1dBQ0JH,size_16,color_FFFFFF,t_70)
这是我自己的简单引用 coment 是我存数据的一个对象然后点出 属性
更多使用 请点击链接
thymeleaf的使用教程
首先加入相关依赖 如图
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
更多使用 请点击链接
thymeleaf的使用教程