tomcat 热启

把javarebel.jar和javarebel.lic放到你tomcat下bin包下 如(D:\tomcat\bin)

如何你用的是myeclipse的话

Windew->Preferences->MyEclipse->Servers->Tomcat->你所有的tomcat版本

 

选择jdk Optional java vm srguments

-noverify -javaagent:D:\tomcat\bin\javarebel.jar  (在你tomcat下bin下)
-Drebel.dirs=D:\work\JPATest\WebRoot\WEB-INF\classes(你要想把class文件放在那里)
-Drebel.spring_plugin=true
-Drebel.struts1-plugin=true

 

如果启动tomcat 时出现


##########################################################

 ZeroTurnaround JavaRebel 2.0-M1 (200812031605)
 (c) Copyright Webmedia, Ltd, 2007, 2008. All rights reserved.

 This product is licensed to Jacky Liu

##########################################################


JavaRebel: A newer version '3.0.1' is available for download
JavaRebel: from http://www.zeroturnaround.com/download.

 

JavaRebel: Directory 'D:\work\JPATest\WebRoot\WEB-INF\classes' will be monitored for class changes.

 

那就成功了

如何你改了一个java类话,

控制台就会输出 JavaRebel: Reloading class '你所修改的类名'

你可能感兴趣的:(spring,jdk,tomcat,Web,MyEclipse)