Intellij Idea + spring-boot + thymleaf实现热部署
文章目录
maven设置
<!-- 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设置
然后在application.propeties中添加spring.thymeleaf.cache = false
Intellij idea中的设置
File –> Setting –> Build, Execution, Deployment –> Compiler –>
check this Build project automaticallyPress SHIFT+CTRL+A (Win/Lin) or Command+CTRL+A (Mac) to open a pop-up windows, type
registryFind and check this option
compiler.automake.allow.when.app.running
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论