1.安裝JRebel插件
在IDEA->Settings->plugins先安裝JRebel插件:

2.下載工具
安裝好JRebel后,找到lanyus大神文章中寫的git地址:http://github.com/ilanyu/ReverseProxy/releases/tag/v1.4,下載自己機器系統相對應的工具

我本機是win10,下載的是ReverseProxy_windows_amd64.exe,完成之后,直接雙擊打開,默認使用8888端口,如下圖:

3.JRebel激活
工具啟動后,就可以開始激活:
直接進入到jrebel的配置項中,點擊active now鏈接進入到激活界面,選擇Team URL(connect to online licensing service)方式激活

第一行輸入http://127.0.0.1:8888/GUID,GUID可以去https://www.guidgen.com生成
第二行隨便輸入一個郵箱就行,比如:idea@163.com
最后勾選I agree with the terms & conditions of the License Agreement,點擊Activate JRebel激活即可。
激活成功后效果如下:

這個時候即可關掉 ReverseProxy_windows_amd64.exe,激活完成。
(網上有人說,工具要一直啟着才行,我自己本地試了,關掉后面也是可以的)
4.JRebel使用
(1)設置自動編譯項目

(2) 修改配置


(3)設置JRebel Work online 和 Redeploy time

(4)勾選要使用JRebel的項目

(5) JRebel啟動

下面是我debug的效果圖:

