当你进来时,说明,你也被springboot2坑了,
springboot2,实际上已经集成了thymeleaf3,就是说你不用在pom中配置什么了,
你只需要配置一个springboot的thymeleaf的pom
也就是
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
然后你就 可以使用thymeleaf3的include标签引入,公共头文件。