下载jrebel。我提供了一个在百度网盘,连接:http://pan.baidu.com/s/1c0ztkYk 密码:brfi, 解压便可使用。本人放在D盘根目录。java
eclipse安装jrebel插件。我直接采用在线安装。安装过程:eclipse --> help --> eclipse marketplace --> find中输入jrebel搜索,选中install便可。安装完重启eclipseweb
配置jrebel。重启完毕后,开始设置 JRebel参数,进入 Eclipse后选择 Window——> Performance。
apache
在左侧选择 JRebel,而后点击 Browser…按钮选择你的 jRebel.jar存放路径。tomcat
eclisep server控制台new server,jrebel integration中勾选enable jrebel agent 让其运行自动部署。而后而后配置jrebel参数:点击Open lauch configuration 在 VM argments中加入参数(tomcat路径对应本身安装的tomcat路径):${jrebel_args}-Dcatalina.base="D:\apache-tomcat-7.0.55" -Dcatalina.home="D:\apache-tomcat-7.0.55" -Dwtp.deploy="D:\apache-tomcat-7.0.55\wtpwebapps" -Djava.endorsed.dirs="D:\apache-tomcat-7.0.55\endorsed"app
如图:eclipse
右击须要热部署的项目,jrebel -> Add Jrebel Nature 后,会在项目的配置文件夹下生成一个rebel.xml,若是不须要对项目热部署,右击项目 ,Jrebel -> Remove Jrebel Nature便可。webapp
启动server,再次修改项目java代码,就不须要重启server了
spa