1、安装eclipse的jrebel插件
Help » Install New Software 然后通过 如下 URL http://www.zeroturnaround.com/update-site/
如果要离线下载的话,可以通过下载离线包的方式进行 http://www.zeroturnaround.com/update-site/update-site.zip 
2、下载jrebel5破解版
下载jrebel5破解版以后解压到D盘根目录即可
下载地址 :http://download.csdn.net/detail/lushengdi/5080360
配置jrebel破解版JAR包的路径 :

3、配置jetty实现热部署
这是为jetty加载jrebel的关键。 项目右键 》 run as 》 run configuation.. 》 点击jetty项目 在mvn jetty:run的JRE管理选项卡中的VM参数中加入 -noverify -javaagent:d:/jrebel/jrebel.jar  现在在eclipse中启动mvn jetty:run,jrebel将被加载,修改java代码可以不重启jetty而热部署生效了,
修改java文件后自动在输出窗口中显示重新加载的信息

tomcat 配置 参考How to install and use JRebel in Tomcat, JBoss or Jetty with the Eclipse IDE http://zeroturnaround.com/jrebel ... th-the-eclipse-ide/
|