IDEA中实现springboot热部署方式
目录
- IDEA中实现springboot热部署
- 依赖(pom.XML)
- application.properties
- settings
- 加快热部署速度
- 总结
IDEA中实现springboot热部署
热部署:每一次修改代码后会自动更新,无需每次重启
依赖(pom.xml)
修改后记得Reloajsd一下
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
application.properties
# 热部署 spring.dpythonevtools.restart.enabled=trpythonue
settings
1.搜索Compiler,勾选Build project automatically

2.Advanced Settings->勾选
Allow auto-make to start pythoneven if developed applicwww.devze.comation is currently running

加快热部署速度
现在SpringBoot就可以自动热部署了,效果还不错,但是感觉速度有点慢。
settings->Languages & Frameworks->Spring->Spring Boot
设置Refresh health in the Actuator tab ewver为1

总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持编程客栈(www.devze.com)。
加载中,请稍侯......
精彩评论