Gradle.
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
dependencies {
developmentOnly("org.springframework.boot:spring-boot-devtools")
}
application.properties
spring.thymeleaf.cache=false
IDEA
- Build Project Automatically
File –> Setting –> Build, Execution, Deployment –> Compiler –> check this
Build project automatically
- Intellij Registry
shift + shift
搜索 registry, 打开registry...
找到并勾选以下选项
[x] compieler.automake.allow.when.app.running
安装chrome 插件
[图片上传失败...(image-3da59e-1545230302384)]LiveReload