JavaRebel的简单配置

JavaReble不知道是什么的朋友请自行百度,这里只做简单项目配置,以达到修改了项目的配置文件和在class中加入任何的代码都不用重启服务器的目的。

1.首先需要下载javarebel.jar包

   javaRebel项目:

   项目主页: http://www.zeroturnaround.com/javarebel/
   文档地址: http://www.zeroturnaround.com/javarebel/installation/
   下载地址: http://www.zeroturnaround.com/download/

2.然后在eclipse 中

    在eclipse中>Window>preferences>Myeclipse>servers>tomcat>tomcat x>jdk中有个选项‘Optional Java VM arguments’中加入下面代码:
    -noverify
    -javaagent:F:/jrebel-3.0-M1/jrebel.jar   
    -Drebel.dirs=F:\eclipse\workspace\qhtjProject_new\WebRoot\WEB-INF\classes  

    -Drebel.spring_plugin=true (配置支持spring) 

    -Drebel.struts2-plugin=true (配置支持struts2,注意这里是“-”,而不是“_”)   

 

重新启动,看到javarebel信息,则成功。

posted @ 2015-03-11 11:05  很好亦平凡  阅读(885)  评论(0编辑  收藏  举报