IDEA 热部署 Devtools
1、添加spring-boot-devtools的依赖到子工程的pom.xml文件
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>
2、添加一个插件到父工程pom.xml中
<build>
<!-- 自己的工程名称-->
<finalName>eslm</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
3、开启自动编译的权限
4、按住快捷键 ctrl+shift+alt+/
4.1选择 Registry…
4.2 勾选compiler.automake.allow.when.app.running和actionSystem.assertFocusAccessFromEdt