如何不重启程序修改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