問題:
在maven中加入依賴後發現熱啓動還是沒辦法
<!--熱部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
解決方法:
如果是idea,需要改以下兩個地方:
1、勾上自動編譯或者手動重新編譯
File > Settings > Compiler-Build Project automaticall
2、ctrl + shift + alt + / > Registry > 勾選Compiler autoMake allow when app running