1、用eclipse 下载 http://update.zeroturnaround.com/update-site
2、接着替换 your eclipse location\plugins\org.zeroturnaround.eclipse.embedder_6.0.0.RELEASE-201410311652\jrebel ,即eclipse所在目录的plugins 替换jrebel里面的jar包。
3、去eclipse 中注册jrebel ,替换文件是jrebel.lic,提示注册成功
以上部分是注册部分
1、双击servers 下面的某个tomcat服务,点击overview,需要配置如下参数:
a、 Server Locations选择 User Tomcat installation
b、 Publishing中选择 Never publish automatically
c、 Timeouts中 Start设置成 1000或更大
d、 JRebel Integration中两个复选框都选中
e、选择Open lauch configuration,在(x)=Arguments选项卡中增加 配置VM arguments参数:
-noverify
-Drebel.struts2-plugin=true
-Drebel.spring_plugin=true
-Xms256m -Xmx256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m
2、双击servers中下面某个tomcat服务,点击modules,添加你需要的module。 需要add external web module.注意document base 需要填写的是程序的webapp的位置,而非tomcat下编译的位置。如:
your project location\xxxxxx\WebApps
Path为要访问的程序web名
3、其次程序上右击选择jrebel,advanced properties.当然了,需要enable 一下jrebel。可以重新生成一下rebel文件。
4、至此,程序可以达到热部署了。
以上是使用插件模式。(一般没什么用)
-noverify
-javaagent:D:\xxxx\xxxxx\jrebel.jar
-Drebel.dirs=your project location\xxxx\WebApps\WEB-INF\classes,your project location\xxxx\WebApps\WEB-INF\classes\config,your project location\xxxxx\WebApps
-Drebel.spring_plugin=true
-Drebel.aspectj_plugin=true
-Drebel.struts2_plugin=true
-Drebel.hibernate_plugin=true
-Drebel.hibernate_validator_plugin=true
或者把这些加到tomcat的启动参数里面
最后要注意的是tomcat的modules中的某个module 的auto reload参数要配置成disabled
此方法经实践可用
分享到:
相关推荐
Eclipse Mars.2 Release (4.5.2),maven 3.3.9,tomcat7,JRebel6.4.3,包内包含JRebel与详细使用说明,纯手写,且亲测可用,eclipse,maven,tomcat可自行下载,JRebel为破解版,码字辛苦,望各位大神给1分辛苦费
Eclipse中使用tomcat 热部署 Jrebel6.4.3 不需安装插件
用eclipse开发开发web程序时候,修改代码了,每次都得重启,很不方便,我在网上找了好久,发下这个可以用!分享下经验! 没有图片哦
Eclipse Tomcat 项目热部署修改Class类不需要重启Tomcat,热加载tomcat。 Jrebel 可快速实现热部署,节省了大量重启时间,提高了个人开发效率。 JRebel是一款JAVA虚拟机插件,它使得JAVA程序员能在不进行重部署的...
web开发,修改java文件之后,就得重新部署或者重新启动tomcat.
有了Jrebel,让独立部署的tomcat也支持热部署(不依赖Eclipse或MyEclipse) 记得路径如果有空格一定要加上双击号,我吃过亏的!
支持eclipse、myeclipse 、tomcat热部署,为开发和部署提供便利,提高工作和线上部署效率。
jrebel-6.4.3,eclipse的插件,可以不重启tomcat的情况下,动态的添加方法,还支持远程调试。
jrebel 6.4.0 破解版 热部署 Tomcat eclipse 直接安装
eclipse热部署 myeclipse IDE的Tomcat下面设置 -javaagent:D:\jar\jrebel\jrebel.jar
eclipse+tomcat热部署工具jrebel,不需要重启,修改html、js、Java代码、xml文件、properties文件自动增量加载,节约开发时间,提高编程效率
可用的好东西,可以热部署 tomcat。