Server configuration for Tomcat in "Eclipse" Eclipse (fix code constantly restarting server)

Source: Internet
Author: User

  

Eclipse sometimes modify a little JS or JSP will automatically restart, and sometimes after the modification of JS or JSP must restart the server to take effect, the following study of some of the server options to completely solve these problems, the following record:

  

The configuration of my eclipse:

Explain

1.Never Publish automatically is

Do not automatically deploy, mainly to prevent each modification of JS or JSP or Java code automatically restart the server.

2.Server locations check the middle;

is to publish the project to the Tomcat installation directory for easy searching.

3.Server options Tick First, second

The first: In order for Tomcat to deliberately use the items under the project West Red Webroot without having to publish the project to the Tomcat WebApps directory, if you do not tick the JS or JSP after each modification, you have to restart Tomcat.

Second: Place the context node that was previously generated in Server.xml under the Conf\catalina\localhost folder alone

If you turn off Tomcat to modify JS or JSP to restart continuously, you can also search for server.xml after ctrl+shift+r in Eclipse, and then change the value reloadable to false:

Server configuration for Tomcat in "Eclipse" Eclipse (fix code constantly restarting server)

Related Article

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.