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插件->目标项目->勾选热更新。


浙公网安备 33010602011771号