【pom】
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
【idea 配置】
1、setting->Build,Execution,Deployment->Compiler找到 Build Project Automatically
2、ctrl+shift+alt+/ 调出Maintenance(维护)控制台,选择Registry(登记)
3、勾选运行时自动编译(auto-making when app running)