[Java] Modifying Java files without restarting the Tomcat service __ Storage

Source: Internet
Author: User

ways to modify Java files without restarting the Tomcat service

When you use Eclipse+tomcat to develop Java projects, you often encounter situations where the modified Java file Tomcat automatically restarts, followed by a lengthy wait service reboot. In fact, most of the Java file modification is not necessary to restart the service, only some specific Java files, such as only the restart service when the Java code will need to restart the service.

There are two ways to modify Java code without restarting the service:

1. Modify Tomcat configuration file (Tomcat-5.5.20/conf/catalina/localhost directory)

Add reloadable= "false" in configuration

<context path= "/"

Reloadable= "false"

Docbase= "F:/workspace/shpm3/shpm3-web"

Workdir= "F:/workspace/shpm3/work"/>

2, can also be set up through eclipse to implement the above configuration file changes

Eclipse's project name right-click: properties->tomcat->general->make this context as reloadable (reloadable= "true") do not select

Eclipse's Engineering name right-click: Tomcat project->update Context Definition

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.