idea 热部署的配置

 

 

 1 增加

第一步在pom.xml文件中添加依赖

<!-- springboot 热部署 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>

 

2:开启自动编译的选项:

 

 3:

 

 

4、开启IDEA的热部署策略(非常重要)

具体步骤:顶部菜单- >Edit Configurations->SpringBoot插件->目标项目->勾选热更新。

 

 

 

5:重启,最新版可以不用

posted @ 2020-06-16 17:11  迷你淘  阅读(155)  评论(0)    收藏  举报