热部署即所见即所得,无需手动重启微服务。添加 pom 依赖即可
<!--spring boot 热部署的依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
如果出现热部署不能使用则有可能是 IDEA 默认设置问题,需要更改如下设置:
人后 shift+ctrl+alt+/,选择 registy
![SpringBoot 用 idea 启动热部署失败解决方法](http://stor.cway.top/2019/02/201902121397_7304.png-fonts)
操作后保存即可
留言评论
暂无留言