1. 程式人生 > >springboot+devtools熱部署

springboot+devtools熱部署

菜單 style alt fig ima 完成 快捷 ins XML


1
<!--dependencys節點內--> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-devtools</artifactId> 5 <optional>true</optional> 6 </dependency> 7 8 <!--build節點
--> 9 <build> 10 <plugins> 11 <plugin> 12 <groupId>org.springframework.boot</groupId> 13 <artifactId>spring-boot-maven-plugin</artifactId> 14 <configuration> 15 <!--
fork:設置True--> 16 <fork>true</fork> 17 </configuration> 18 </plugin> 19 </plugins>
pom.xml配置如上

二.使用
CTRL+S保存代碼 CTRL+F9編譯
三.快速保存及部署
菜單Edit
技術分享圖片技術分享圖片
出現這個窗口後 鍵盤輸入 CTRL+S CTRL+F9
技術分享圖片
點擊紅色按鈕 錄制完成。
之後給這個宏一個命名。
命名後在Keymap中
技術分享圖片
會出現你剛剛創建的宏命令 給他一個快捷鍵 就可以快速執行這個宏

 

 

springboot+devtools熱部署