1、禁止thymeleaf缓存
spring.thymeleaf.cache=false
2、添加自动部署maven依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency>
3、Ctrl+F9手动编译
1、禁止thymeleaf缓存
spring.thymeleaf.cache=false
2、添加自动部署maven依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency>
3、Ctrl+F9手动编译