美文网首页
Mac 下 IDEA+JRebel7.1.5 热启动配置

Mac 下 IDEA+JRebel7.1.5 热启动配置

作者: 归园小哥 | 来源:发表于2018-04-26 18:42 被阅读0次

一、准备工作

JRebel 版本7.1.5
破解工具:https://github.com/ilanyu/ReverseProxy.git
怕麻烦的可以直接下载整合的文件(插件+破解工具):链接:https://pan.baidu.com/s/17DG2SQA3VIL-CnXkC8rivw 密码:9f2i

二、安装IDEA插件

选择下载的压缩包进行安装


image.png

重启IDEA

三、破解激活

进入下载的文件目录执行脚本,查看帮助

./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]

测试通过

相关文章

网友评论

      本文标题:Mac 下 IDEA+JRebel7.1.5 热启动配置

      本文链接:https://www.haomeiwen.com/subject/vcumlftx.html