With Eclipse + tomcat, the Tomcat WebApp will always be restarted to use hot loading.
You can use this plugin: Jrebel
In the case of the Tomcat 7.0+ version, you need to use the jrebel5.5.1+ version, or you will always report some errors.
How to use:
1) Download Jrebel 5.5.1+
2) Right-click Project, select:
3) Find "VM arguments":
Fill in the Inside:
-dcatalina.base= "E:\JavaProject\.metadata\.plugins\org.eclipse.wst.server.core\tmp0"-dcatalina.home= "d:\ Program files\apache-tomcat-7.0.54 "-dwtp.deploy=" E:\JavaProject\.metadata\.plugins\org.eclipse.wst.server.core\ Tmp0\wtpwebapps "-djava.endorsed.dirs=" D:\Program files\apache-tomcat-7.0.54\endorsed "-noverify-javaagent : F: \tools\java\jrebel\jrebel. Jar-drebel. dirs=e:\javaproject\obs\webcontent\web-inf\classes-drebel. spring_plugin= True-drebel. struts2-plugin=true
Description
-noverify: Unzip the Jrebel.jar file address
-drebel.dirs: Classes address for Project compilation
-drebel.spring_plugin: Using spring, set to True
-drebel.struts2-plugin: Using struts, set to True
4) Disable the Eclipse Tomcat enable auto-load feature to prevent it from always restarting Tomcat automatically
OK, now modify a Java method, save try. ^o^
[Eclipse]-integrated tomcat hot Load Plugin