springcloud项目 开发过程中配置 热部署devtools

阅读 47

2022-04-04

idea 开发过程中设置 热部署 devtools

第一步:先在子项目pom.xml中添加devtools依赖

org.springframework.boot
spring-boot-devtools
runtime
true

第二步:在父工程项目的pom.xml中添加maven插件

org.springframework.boot
spring-boot-maven-plugin

true
true


第三步:开启自动编译file——settings——build,execution,deployment——compiler将以下四个通通打勾✔
在这里插入图片描述

第四步:开启热注册
在父工程的pom.xml中,点击ctrl+shift+alt+/
会弹出以下页面,选择第一个
在这里插入图片描述
进入以下页面,然后将以下两个进行打勾✔
在这里插入图片描述
第五步:重启IDEA;

精彩评论(0)

0 0 举报