1 配置pom.xmlspring
<!--spring-boot-devtools 熱部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2 配置idea 的 Compiler 勾選 Build project automatically windows
3 command+shift+a 搜索 registry (windows下是ctrl+shift+a) (下圖1)app
雙擊第一個選項, 打開的列表中 勾選 : compiler.automake.allow.when.app.running(下圖2)ide
4setting -- System settings spring-boot
取消 save files on frame deactivationui
勾選 save files automatically if application is idle for 30 sec.idea