jrebel 安装与使用

此文权属个人研究学习之用。资源皆来自网络。
1.安装插件:
eclipse marketplace 搜索 jrebel
或help-> install new software, update site: http://www.zeroturnaround.com/update-site/

2.安装完后,提示invalid license. 关闭eclipse, 下载这个文件,
[url]http://pan.baidu.com/share/link?shareid=1494205938&uk=537696768[/url]解压覆盖至eclipse/plugins/org.zeroturnaround.eclipse.embedder_5.5.2.RELEASE-201403191032 下。

3.重启eclipse. license已经生效了。

4.在所需要项目中使用jrebel, 以下以maven项目作介绍:
pom.xml plugins添加:
plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<rebelXmlDirectory>${basedir}/src/main/webapp/WEB-INF/classes</rebelXmlDirectory>
</configuration>
</plugin>


5.test/resources下添加rebel.xml,路径改为你自己项目对应的:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

<classpath>
<dir name="F:/studio/junows/jee/src/main/webapp/WEB-INF/classes">
</dir>
</classpath>

<web>
<link target="/">
<dir name="F:/studio/junows/jee/target/m2e-wtp/web-resources">
<exclude name="/"/>
</dir>
</link>
<link target="/">
<dir name="F:/studio/junows/jee/src/main/webapp">
</dir>
</link>
</web>

</application>



添加jvm启动参数:

${jrebel_args}
-noverify -XX:PermSize=128M -XX:MaxPermSize=512M
-Drebel.log=d\:\\jrebel\\jrebel.log
-Xms512m -Xmx1024m
-Drebel.spring_plugin=true


PS: 改properties\xml无效,这是要手动重启的。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值