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