修改代码后,不重启tomcat的小技巧
使用一个jrebel.jar包可以让减少启动tomcat的次数。
1、比如下载的jrebel.jar包,放置在C:\test\jrebel\jrebel.jar下。
2、有了第一步的操作,你此时可以在配置你的tomcat的地方,的最后一项Optional program? arguments 的值为:
???? -noverify -javaagent:C:/test/jrebel/jrebel.jar
?
3、在左边的菜单栏中的,进入Tomcat选项中后,为JDK也配同样的优化参数。
?
启动tomcat,此时在tomcat的最前方有:---》 表示安装成功
#############################################################
?JRebel 3.1.2a (201008121555)
?? with Enterprise Add-On! (see http://jrebel.com/enterprise)
?(c) Copyright ZeroTurnaround OU, Estonia, Tartu.
?Over the last 1 days JRebel prevented
?at least 15 redeploys/restarts saving you about 0.6 hours.
?You are running JRebel evaluation license.
?You have 30 days until the license expires.
?You will see this notification until you obtain a
?full license for your installation.
?????????????????????????????????????????????????????????
?Visit www.jrebel.com for instructions on obtaining???
?a full license. If you wish to continue your evaluation?
?please e-mail to support@zeroturnaround.com.????????????
?????????????????????????????????????????????????????????
?If you think you should not see this message contact????
?support@zeroturnaround.com or check that you have your??
?license file in the same directory as the JAR file.?????
?The following plugins are disabled at the moment:
?* EclipseLink Plugin (set -Drebel.eclipselink_plugin=true to enable)
Reloads EntityManagerFactory when configuration changes
?* Log4j plugin (set -Drebel.log4j-plugin=true to enable)
Reloads full configuration of log4j
?* Stripes plugin 1.0.11 (set -Drebel.stripes_plugin=true to enable)
Adds reloading of Stripes ActionBeans.
?* TopLink Plugin (set -Drebel.toplink_plugin=true to enable)
Reloads EntityManagerFactory when configuration changes
?* TopLink Spring Plugin (set -Drebel.toplink_spring_plugin=true to enable)
Reloads SeesionFactory when configuration changes
?* WebObjects Plugin (set -Drebel.webobjects_plugin=true to enable)
WebObjects JRebel Plugin
#############################################################
?