tomcat对热部署的支持不是很好,在添加方法,类,以及资源文件的时候经常须要重启服务,像我在公司里面的一个服务起来都要一到五分钟,很是浪费时间.jrebel是第三方作的热部署的工具,很是有用.下面就是在eclipse上面如何使用jrebel插件.web
1.经过eclipse install 下载jrebel eclipse插件
地址:http://www.zeroturnaround.com/update-site/
在获取插件信息后选择安装JRebel(要取消JRebel m2eclipse Integration,不然没法正常安装)
2.安装完成以后重启eclipse,配置须要使用jrebel插件的项目和server. 顺便配置下jrebel打印出日志
3.插件会在选中的项目下自动生成rebel.xml .这个rebel.xml不能直接用,须要修改一下spring
<classpath>
<!-- 这里是eclipse生成的class地址-->
<dir name="/home/liubin/workspace/tz/tops-front/tops-front-purchaser/bin">
</dir>
</classpath>
<web>
<link target="/">
<!-- 这里是项目资源文件的地址-->
<dir name="/home/liubin/workspace/tz/tops-front/tops-front-purchaser/src/main/webapp">
</dir>
</link>
</web>
4.直接启动项目便可
5.通过测试 添加方法,类,资源文件,以及使用spring的注解等都能当即生效.tomcat
6.关于破解jrebel你们能够去网上查.app