Tips on Tomcat auto-loading update class

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.