Modify Eclipse's Web project work cache directory

Source: Internet
Author: User

When using Tomcat, there is a work folder that is a directory of Web work caching: Used to store compiled JSP files, and when we build a Web project with Eclipse, it seems that the default is in the Tomcat directory. When we want to modify the directory, in Tomcat's conf/ When catalina/loaclhost/web_name.xml, it conflicts with Eclipse's project configuration file, and you want to change the cached file to the work folder in the project root. After referencing the following Web site:

Http://hi.baidu.com/xbinliao/blog/item/ba1d5b63fc8078640c33fad8.html

The context.xml file under the Mata-inf folder is the context property that sets the current project. Put Web_name.xml files under Mata-inf folder, Change the name to Context.xml. Once a project in eclipse, restart Tomcat. After running, the project root directory generates the cached files for the current project under the work file. Big announcement into.

Description: Mata-inf and Web-inf are folders in the same directory. Are files that cannot be accessed externally.

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.