SpringBoot無法熱部署

問題:
在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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章