in Tomcatthe Server.xml orTomcatinside the context tag in the. xxx\conf\catalina\localhost\project.xml file:
<!--reloadable to Fase indicates that the project is not automatically
<context reloadable= "false" >
<!--reloadable to TRUE indicates that the project is automatically
<context reloadable= "true" >
First step: Set Reloadable to False
This is a modified Tomcatproject files under the Catalina directory (this configuration will only work for this project):
Step Two: Debug mode startTomcat. If you're using Eclipse,Tomcatplug-in words,put don ' t run tOmcatDebug mode uncheck, it will be the debug mode to startTomcatthe following:window=>preferences=>Tomcat=>JVM Settings
if it's MyEclipse,:
at this point, restartTomcatIt will take effect to load class automatically. But one thing needs to be noted. You don't need to restart if you're modifying the original code.Tomcatcan take effect, but if you add a new method, you still have to restart:
Although the new method requires a reboot to take effect, it also greatly improves the speed at which we develop or debug.
From for notes (Wiz)
Tips on Tomcat auto-loading update class