thymeleaf热更新
1、导入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!--thymeleaf热更新-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2、配置application.yml
spring:
thymeleaf:
cache: false
3、修改页面后按热键ctrl+shift+F9从新编译页面,刷新界面即可更新数据
<!--页面要引入thymeleaf模板地址-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">