热部署配置
** 1.在子工程中的pom里添加依赖**
在子类添加该依赖
<!--热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2.在父工程中的pom.xml里添加
//finalName里写子项目的名字
<finalName>cloud-provider-payment8001</finalName>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
3.shift+ctrl+alt+/
将选中阔起来的两个打上勾
重启项目,清除控制台消息,修改代码,项目将回自动重启