首页 > SpringBoot+thymeleaf不重启修改html

SpringBoot+thymeleaf不重启修改html

如何不重启程序修改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>
【热门文章】
【热门文章】