Eclipse Jrebel SpringBoot 热部署设置

为什么不选择spring-boot-devtools? 修改代码后重启需要时间, 服务上线gateway/client感知需要时间,说好的效率呢

找了一圈没有找到如何Jrebel如何设置,唯一找到一篇还是VIP专属???

自己摸索一晚成功配置,亲测有效,废话不多说,开始莽吧...

Eclipse安装Jrebel

   感谢原作者: https://blog.csdn.net/qierkang
   感谢原作者: https://blog.csdn.net/qierkang
   感谢原作者: https://blog.csdn.net/qierkang

  1. 下载并安装 Jrebel , Eclipse-->Help-->Eclipse Marketplace (我选用的是最新版2019.2.2)
  2. 在线生成一个GUID https://www.guidgen.com/
  3. 打开Jrebel Avtivation面板, 选择Team Url (Connect to online licensing service)
  4. 输入: https://jrebel.qekang.com/{GUID} , 邮箱任意填写  例如: https://jrebel.qekang.com/37d26a8d-0661-454e-97da-8bc0c608a880   xyqierkang@163.com
  5. Mission accomplished!(如果失效刷新GUID替换就可以!)

Eclipse热部署姿势

    tomcat/java就不说了,自行查找,只讲解SpringBoot / SpringCloud姿势.

 

  1. Open Perspective(右上角 Quick Access旁边) --> Jrebel Configuration --> Projects ,勾选需要热部署的项目(会生成reb
eclipse和网上找到的破解包提取打包成无依赖,独立java程序可用的版本。独立java程序启动的时候增加如下的JVM参数即可 -server -Xmx512m -XX:MaxPermSize=128m -Djava.awt.headless=true -Drebel.spring_plugin=true -noverify -javaagent:D:\apps\jrebel6.4.3\jrebel.jar -Xbootclasspath/p:D:/apps/jrebel6.4.3/rebelboot.jar -Drebel.base=D:\apps\jrebel6.4.3\.jrebel -Drebel.disable_update=true D:\apps\jrebel6.4.3这个为解压后的路径,rebel.base参数指定了jrebel.lic所在的位置,因此无需拷贝到用户目录下。 控制台可以看到如下的输出表示jrebel配置成功。 2016-07-13 11:42:59 JRebel: WARN You are running JRebel using the -javaagent option on a system where -agentpath is supported. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: ############################################################# 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: JRebel Agent 6.4.3 (201604210950) 2016-07-13 11:43:02 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: Over the last 1 days JRebel prevented 2016-07-13 11:43:02 JRebel: at least 1 redeploys/restarts saving you about 0 hours. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: Licensed to VIMACER (ZeroTurnaround) 2016-07-13 11:43:02 JRebel: with the following restrictions: 2016-07-13 11:43:02 JRebel: ### Hello World Cracked ### :) 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: License type: enterprise 2016-07-13 11:43:02 JRebel: Valid from: July 14, 2014 2016-07-13 11:43:02 JRebel: Valid until: August 18, 2888 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: ############################################################# 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:04 JRebel: Monitoring Log4j configuration in 'xxxxx/log4j.properties'. 2016-07-13 11:43:06 JRebel: Monitoring properties in 'xxxxx\xxxx.properties'. 2016-07-13 11:43:32 JRebel: Reloading class 'xxxxx'. 2016-07-13 11:43:32 JRebel: Reconfiguring bean 'xxxxx' [xxxxx]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值