使用JRebel实现热部署
目录
Eclipse 中安装 JRebel
打开Eclipse,点击Help -> Install new software,进入软件安装向导
点击 Add 按钮,输入以下信息:
Name:Jrebel 6.2.7
Location:http://update.zeroturnaround.com/update-site-archive/update-site-6.2.7.RELEASE/
根据向导,完成安装:
重启Eclipse,Help菜单出现Jrebel Configuration表示安装成功。点击该菜单,出现如下界面:
破解
下载破解文件jrebel-6.2.7-cracked.zip,并解压文件,按如下步骤破解:
-
~jrebel/jrebel.jar覆盖eclipse/plugins/org.zeroturnaround.eclipse.embedder_6.2.7.RELEASE-201511061610/jrebel/jrebel.jar
-
~jrebel6/jrebel.jar覆盖eclipse/plugins/org.zeroturnaround.eclipse.embedder_6.2.7.RELEASE-201511061610/jr6/jrebel/jrebel.jar
-
jrebel.lic复制到 username/.jrebel目录。
-
重启Eclipse
在JRebel Configuration中看到licence信息说明成功
配置热部署
打开JRebel Configuration界面:
打开Tomcat配置:
启动服务器,显示以下信息说明配置成功:
2017-03-25 22:30:21 JRebel:
2017-03-25 22:30:21 JRebel: #############################################################
2017-03-25 22:30:21 JRebel:
2017-03-25 22:30:21 JRebel: JRebel Agent 6.2.7 (201511061217)
2017-03-25 22:30:21 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
2017-03-25 22:30:21 JRebel:
2017-03-25 22:30:21 JRebel: Over the last 1 days JRebel prevented
2017-03-25 22:30:21 JRebel: at least 5 redeploys/restarts saving you about 0.2 hours.
2017-03-25 22:30:21 JRebel:
2017-03-25 22:30:21 JRebel: Licensed to VIMACER (ZeroTurnaround)
2017-03-25 22:30:21 JRebel: with the following restrictions:
2017-03-25 22:30:21 JRebel: ### Hello World Cracked ### :)
2017-03-25 22:30:21 JRebel:
2017-03-25 22:30:21 JRebel: License type: enterprise
2017-03-25 22:30:21 JRebel: Valid from: July 14, 2014
2017-03-25 22:30:21 JRebel: Valid until: August 18, 2888
2017-03-25 22:30:21 JRebel:
2017-03-25 22:30:21 JRebel:
2017-03-25 22:30:21 JRebel: #############################################################
2017-03-25 22:30:21 JRebel: