SpringBoot在idea中的熱部署配置:
1.添加依賴:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional><!-- optional=true,依賴不會傳遞,該項目依賴devtools;之后依賴myboot項目的項目如果想要使用devtools,需要重新引入 -->
</dependency>
2.勾選 File-Settings-Compiler-Build Project automatically

3.ctrl + shift + alt + /,選擇Registry,勾上 Compiler autoMake allow when app running
啟動SpringBoot后修改文件可以發現SpringBoot自動重新啟動