resolves an issue that cannot be accessed after a Web project is renamed in MyEclipse
A friend of mine recently asked me why my Web project was accessible before, but why I made an error after I modified the project name in MyEclipse, which was 404. I had this problem when I was Learning Web project development, so I explained to him:
It turns out that he only modified the project directory name of the Web project in MyEclipse, such as changing the project name test to Test1, but did not modify the Web root in the URL when the Web project was accessed.
he used http://localhost:8080/test/to access the project, modified the above project name, he used http://localhost:8080/test1/to access the project, resulting in a browser 404 error, But he used it back to http://localhost:8080/test/to visit and to visit. No matter what name he modifies that test project name, only http://localhost:8080/test/can access the project normally.
I told him. After changing the project name, modify one of the following: project node-> Right-click Property (The English version is the bottom one), and the upper left corner of the search box, enter Web Conte Xt-root "option
after the modification, and then use http://localhost:8080/test1/to access the normal access to.
Resolves an issue that cannot be accessed after a project is renamed in MyEclipse