在idea中設置springboot熱部署,項目修改的時候不用手動重啓應用spring
1,pom中添加依賴springboot
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
2.ctrl+alt+s 打開設置 File | Settings | Build, Execution, Deployment | Compiler,選中打勾 「Build project automatically」app
3.「Shift+Ctrl+Alt+/」(Windows) 、「Shift+CMD+Alt+/」 (MAC平臺),選擇 「Registry」 ,選中打勾 「compiler.automake.allow.when.app.running」 。ide