如何不重启程序修改html
如果使用的开发工具是 idea ,修改 html 后使用 Ctrl + Shift + F9.
spring.thymeleaf.cache 设为false或者使用springboot的devtools
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>1.3.0.RELEASE</version> </dependency>
spring.thymeleaf.cache=false
如果使用的开发工具是 idea ,修改 html 后使用 Ctrl + Shift + F9.
spring.thymeleaf.cache 设为false
或者使用springboot的devtools
spring.thymeleaf.cache=false