idea中springboot熱部署(無需重啟項目)
1.在pom.xml文件中導入依賴
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2.配置idea
點擊idea->file->settring->搜索compiler->勾選Build project automatically
到這一步其實已經很快捷了,只需要點擊ctrl+f9,然后刷新瀏覽器即可
3.點擊ctrl+shift+alt+/ 選擇Registry
選擇compiler.automake.allow.when.app.running:
到這里就算配置完成了