<!--Thmyeleaf模板-->
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring5</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-java8time</artifactId>
</dependency>
再application.properties中 关闭模板引擎的缓存
#关闭模板引擎缓存 #修改html后 只需要点击Build下的
Build Project
或 ctrl+f9
即可,再去页面 点击刷新,修改后台需重启 spring.thymeleaf.cache=false
html页面中引入命名
<html lang="en" xmlns:th="http://www.thymeleaf.org">