1. 程式人生 > >idea spring boot 熱部署 (真正的不需要重啟)Jrebel License 免費啟用Jrebel

idea spring boot 熱部署 (真正的不需要重啟)Jrebel License 免費啟用Jrebel

IDEA版本 2017.2.4  Jrebel 版本7.1.6

1、開啟idea自動make功能 


2、CTRL + SHIFT + A --> 查詢Registry --> 找到並勾選compiler.automake.allow.when.app.running 


3.Jrebel 安裝   圖中我的已安裝 狀態


4 license server  搭建

    license server 程式 下載地址 :   https://gitee.com/gsls200808/JrebelLicenseServerforJava/

    

選擇 dowload zip 下載完成後解壓   

 MainServer.java 中 可修改執行埠 如 : 

Server server = new Server(8036);  

 進入根目錄  :
 cd /path

maven 執行 :
mvn compile 

mvn exec:java -Dexec.mainClass="com.vvvtimes.server.MainServer" 

由於idea  jrebel 每次執行都會校驗 所以 license server 需要實時啟動 ,  linux下可在控制檯新增&讓程式在後臺執行

執行成功後 訪問本機 顯示如下內容


5. 在第6部的操作中 , Jrebel 會提示你啟用,啟用方法如下 


上圖中郵箱可隨便填寫

6.在專案中新增rebel.xml


7.選擇要執行的spring boot 應用 JRebel  點選 run 或 debug

8. 驗證是否可成功熱部署 

專案執行狀態 下 新建 TestControll 新增相應方法 



9. 謝謝觀看,微信打賞