转:解决修改java类文件需要重启tomcat有关问题

转:解决修改java类文件需要重启tomcat问题

 

转载链接:http://blog.sina.com.cn/s/blog_5fd67b8b0100j48x.html

 

用eclipse开发java的时候,经常在修改java类文件的时候都需要重启tomcat,比较麻烦,今天问了同事解决方法,记录下备忘。
需要下载一个插件包jrebel.jar,然后随便放一个目录,比如我放在D:/eclipse/jrebel/目录下,然后需要在eclipse上的首选项进行设置,找到tomcat设置下的JVM Settings设置,然后在Append to JVM Parameters中添加

-noverify -javaagent:G:\joesmart\jrebel.jar
-Drebel.allow_bytecode_proxy=true
-Drebel.spring_plugin=true
-Drebel.struts1-plugin=true 

  //如果是struts2的,改为-Drebel.struts2-plugin=true