The Web project developed by Eclipse is deployed to the WebApps folder under the Tomcat folder __eclipse

Source: Internet
Author: User
Tags tomcat server

1, open eclipse,window->preferences->server->runtime environments, add the appropriate Tomcat server on the right


2, the following figure, select the response of the server, right key->open


Next, you will see the following figure, modifying the two items in server location, notice whether server path is consistent with the actual Tomcat path, and then save


3. Configure reference lib output to the corresponding Web application in tomcat

Select the item, right-click->properties, find Deployment Assembly, then store the Add button on the right, add Java build Path Entries, then OK, finally click OK to complete Setup



4, finally write and change the corresponding project under the. classpath file, the following figure to move the callout section to the front, so that each release will overwrite the previous file

By this time, the Web project that eclipse developed will be deployed to Tomcat, and you will not be able to open eclipse, start Tomcat directly, and enter the URL in the browser to access the project.

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.