当你进来时,说明,你也被springboot2坑了,
springboot2,实际上已经集成了thymeleaf3,就是说你不用在pom中配置什么了,
你只需要配置一个springboot的thymeleaf的pom
也就是
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
然后你就 可以使用thymeleaf3的include标签引入,公共头文件。
本文介绍如何在SpringBoot2项目中轻松集成Thymeleaf3,通过配置pom.xml文件,实现公共头部文件的引入和使用。
226

被折叠的 条评论
为什么被折叠?



