搜尋

首頁  >  問答  >  主體

java - SpringBoot+thymeleaf不重启修改html

如何不重启程序修改html

巴扎黑巴扎黑2888 天前591

全部回覆(3)我來回復

  • PHP中文网

    PHP中文网2017-04-17 17:44:53

    如果使用的開發工具是 idea ,修改 html 後使用 Ctrl + Shift + F9.

    回覆
    0
  • 怪我咯

    怪我咯2017-04-17 17:44:53

    spring.thymeleaf.cache 設為false
    或使用springboot的devtools

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <version>1.3.0.RELEASE</version>
    </dependency>
    

    回覆
    0
  • 怪我咯

    怪我咯2017-04-17 17:44:53

    spring.thymeleaf.cache=false

    回覆
    0
  • 取消回覆