1.IDEA 安裝Jrebel 插件
Prefrences->Plugins->Browse repositories → 搜索Jrebel 進行安裝
如下圖:
jrebel_1.png
安裝后重啟IDEA
2.破解激活Jrebel
jrebel_2.png
licensing service server 處輸入地址
http://139.199.89.239:1008/a13dce66-9520-4ddb-9134-3b3eab031749
地址后面的UUID,自己在線生成一個 http://www.ofmonkey.com/transfer/guid
郵箱隨便輸入
3.設置Jrebel 離線模式
jrebel_3.png
4.配置IDEA
4.1勾選Build project automatically
File——Settings——Compiler,右側找到勾選項。
jrebel_4.png
4.2勾選compiler.automake.allow.when.app.running
快捷鍵:CTRL + SHIFT + Alt + /
jrebel_5.png
jrebel_6.png
5.啟動項目使用Jrebel 啟動測試項目
jrebel_7.png
6.重新build project
Jrebel雖然可以自動reload更改的文件,但是通常需要等半分鐘左右,我們可以手動進行build,避免沒用的時間等待。
手動構建項目 Build→Build Project
可以測試,修改Controller 代碼后,不用重啟服務,刷新頁面,立馬生效。效率飛升!!!s