【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)