eclipse 安装好JRebel插件之后,可以'帮助'中看到JRebel的图标:
进入JRebel Config CENTER:
tomcat 的VM arguments 如下:
${jrebel_args}
-Dcatalina.base="D:\software\eclipse\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0" -Dcatalina.home="D:\software\apache-tomcat-7.0.59-windows-x64\apache-tomcat-7.0.59" -Dwtp.deploy="D:\software\eclipse\workspace2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps" -Djava.endorsed.dirs="D:\software\apache-tomcat-7.0.59-windows-x64\apache-tomcat-7.0.59\endorsed"
-Drebel.spring_plugin=true
好处:
当我们修改java文件时,妈妈再也不用担心tomcat重启了,而且JRebel也不会立刻重新装载修改的class,
只有当我们http访问时才会重新装载修改的类,而且仅仅装载修改的类.实际上是一种差量装载:
JRebel 的破解包 jrebel-5.6.1-crack.zip 见附件