一产舞、準備工作
JRebel 版本7.1.5
破解工具:https://github.com/ilanyu/ReverseProxy.git
怕麻煩的可以直接下載整合的文件(插件+破解工具):鏈接:https://pan.baidu.com/s/17DG2SQA3VIL-CnXkC8rivw 密碼:9f2i
二店雅、安裝IDEA插件
選擇下載的壓縮包進行安裝
image.png
重啟IDEA
三睹耐、破解激活
進入下載的文件目錄執(zhí)行腳本,查看幫助
./ReverseProxy_darwin_amd64 -h
Usage of ./ReverseProxy_darwin_amd64:
-l string
listen on ip:port (default "0.0.0.0:8888")
-r string
reverse proxy addr (default "http://idea.lanyus.com:80")
OK使用默認配置即可逝她,啟動腳本
./ReverseProxy_darwin_amd64
掛起終端
回到IDEA技竟,打開JRebel激活頁面
image.png
URL:http://127.0.0.1:8888/Ryan (Ryan不是固定的隨意寫)
Email:隨意填寫即可
設置脫機【重要】
image.png
脫機成功之后便可以將之前掛起的終端關閉啦
四、IDEA設置支持熱啟動(已設置可忽略)
打開設置勺拣,勾選 Build project automatically
image.png
組合鍵 Shift+Ctrl+Alt+/奶赠,選擇Registry...
image.png
勾選 compiler.automake.allow.when.app.running
image.png
五、熱啟動測試
Run with JRebel 啟動項目
image.png
控制臺打右┯小:
2018-04-26 18:39:18 JRebel: Found offline lease from local storage.. executing JRebel with offline licensing.
2018-04-26 18:39:19 JRebel: Starting logging to file: /Users/ryan/.jrebel/jrebel.log
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel: #############################################################
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel: JRebel Agent 7.1.5 (201801171200)
2018-04-26 18:39:19 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel: Over the last 2 days JRebel prevented
2018-04-26 18:39:19 JRebel: at least 2 redeploys/restarts saving you about 0 hours.
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel: License acquired from License Server: http://127.0.0.1:8888
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel: Licensed to ryan.
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel: You are using an offline license.
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel: #############################################################
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel:
2018-04-26 18:39:19 JRebel: A newer version '2018.1.0' is available for download
2018-04-26 18:39:19 JRebel: from http://zeroturnaround.com/software/jrebel/download/
2018-04-26 18:39:19 JRebel:
修改代碼毅戈,控制臺打悠煌琛:
2018-04-26 18:40:37 JRebel: Reloading class 'com.yiautos.authorize.web.UserController'.
2018-04-26 18:40:37 JRebel: Reconfiguring bean 'userController' [com.yiautos.authorize.web.UserController]
測試通過