<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring5</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-java8time</artifactId>
</dependency>
使用的版本为8的时候导入thymeleaf的maven配置
不需要写入版本号,springboot会自带版本号
在xml配置文件中进去springboot查看版本号的步骤为:
1.
2.
3.
在这里面就可以查看到springboot中全部配置的版本号,如果需要修改springboot中的版本直接去修改第一张图中的version