环境
IDEA 2017.2.2
maven 3.5
1、导入热部署的maven依赖
<!--热部署工具-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
2、设置IDEA
File->settings

按住ctrl +shift + alt + /, 点击registry

找到compiler.automake.allow.when.running,勾上,close。

restart项目,下次修改代码就可以热部署了。
3113

被折叠的 条评论
为什么被折叠?



