maven設置spring
<!-- hot swapping, disable cache for template, enable live reload --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
spring設置windows
而後在application.propeties
中添加spring.thymeleaf.cache = false
app
Intellij idea中的設置maven
File –> Setting –> Build, Execution, Deployment –> Compiler –> check this Build project automatically
ide
Press SHIFT+CTRL+A (Win/Lin) or Command+CTRL+A (Mac) to open a pop-up windows, type registry
spring-boot
Find and check this option compiler.automake.allow.when.app.running
ui