您的位置:首页 > 编程语言 > Java开发

eclipse下安装破解jrebel5.5.2以及jetty下热部署

2015-01-19 10:36 288 查看
参考
http://chembo.iteye.com/blog/2048441 http://www.th7.cn/Program/java/201407/253176.shtml
eclipse安装jrebel

jrebel的更新全部地址:http://update.zeroturnaround.com/update-site/

这里我们选择5.5.2版本的

Help -> Install New SoftWare

输入更新地址:http://update.zeroturnaround.com/update-site-archive/update-site-5.5.2.RELEASE/



这个插件的安装更新还需要连google,但是现在国内访问不了google了,需要开代理。

安装插件更新,安装完成后,

然后下载jrebel破解版
http://download.csdn.net/download/ccjsmile/7160423
下载后,解压

将jrebel.jar和jrebel.lic替换到

%eclipse_home%\plugins\org.zeroturnaround.eclipse.embedder_5.5.2.RELEASE-201403191032\jrebel

然后cd 到

%eclipse_home%\plugins\org.zeroturnaround.eclipse.embedder_5.5.2.RELEASE-201403191032\jrebel\bin>



激活成功,,重启eclipse就ok了。

激活成功后,打开eclipse就可以看到有jrebel插件了。

要将Jrebel应用到具体服务器如下:

在jvm启动参数那,增加启动参数



具体参数解释如下:

-Drebel.spring_plugin=true 支持spring框架

-Drebel.aspectj_plugin=true 支持aspectj

-Drebel.struts2_plugin=true 支持strut2

-javaagent:D:/jrebel.jar 这里自行修改jrebel.jar正确的路径

-Drebel.dirs=F:/Project/test/WebContent/WEB-INF/classes,F:/Project/test/WebContent

-Drebel.disable_update=true

-noverify -XX:PermSize=128M -XX:MaxPermSize=512M

配置好后,启动后,可以看到后台有打印:

2015-01-19 14:46:13 JRebel: Monitoring Spring bean definitions ...............

配置成功

这时候,我们改个java类,是可以即时生效,不用重启.

此外,如果我们debug时,不想因这些插件的错误而影响debug,我们可以debug时过滤这些包下的类,具体配置如下:



点击 Add Filter 按钮添加 add com.zeroturnaround.* 和 org.zeroturnaround.*。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: