Idea 开启热部署
1、工程顶级pom.xml配置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
2、模块pom.xml配置
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
3、IDEA registry配置
ctrl+shift+alt+/ 打开 registry 勾选以下两个
compiler.automake.allow.when.app.running
actionSystem.assertFocusAccessFromEdt
4、重启IDEA