Deploying Web Projects in Eclipse

Source: Internet
Author: User

Yesterday in the experiment to find the path of the picture is wrong, how to change the wrong, later thought in the browser input localhost:8080 is the path of the Tomcat server, did not find the resource is not deployed to Tomcat, The WebApps to Tomcat did not find the project file, so the project was deployed.

First, create a new servers, right-click on the project, have Run As->run on Server, and if not, create a new one.

Then configure the servers, you must first remove the items inside, otherwise you cannot configure

Then double-click Open, or right-click on open, configure these two places deploy path must be WebApps

Re-publish (Run As->run on Server), then go to the Tomcat service path and find that the project has been deployed to the WebApps directory.

Then take a look at the path in the project, and you can see that when we use the picture, we have to put it in the WebContent directory to find the resources after the project is deployed.

Deploying Web Projects in Eclipse

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.