1.pom坐标
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
2.点击Seetings>Bulid,Execution,Deployment>Compiler
3.快捷键
键入Ctrl + Shift + Alt + / ,打开Registry,勾选:
-
compiler.automake.allow.when.app.running
-
actionSystem.assertFocusAccessFromEdt
重启动idea即可