Eclipse configures Tomcat and modifies the Tomcat default root directory

Source: Internet
Author: User

1. Install eclipse for Java EE and Tomcat;

2. Download the Tomcat plugin for Eclipse: http://www.eclipsetotale.com/tomcatPlugin.html

After downloading, unzip. The extracted files are placed in the eclipse's plug directory, and the Tomcat icon is visible after reboot (download 3.3.1 version of no icon generated, change the 3.3.0)

3. Configure the version of Tomcat

Windows-->tomcat,

  

4. Configure the server:

  

  

  

5. Modify the default default root directory for Tomcat:

1) Open the Server.xml file under the Tomcat installation directory Conf folder

2) Find the <Host> tag, modify its properties appbase the value for its own Web project root directory, such as: D:\eclipseWorkspace\mywebtest1

3) Add between <Host></Host> Tags: <context path= "" docbase= "\webcontent" debug= "0" reloadable= "true" ></ Context>

Where the value of the Docbase property is the directory where the site's default entry is located

6. Reboot Tomcat, enter in browser: http://localhost/, verify success

Eclipse configures Tomcat and modifies the Tomcat default root directory

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.