1. Usually when we run the IDE, the Web project is deployed by default on the workspace specified by the project
2. Remove all deployed projects from the bottom servers view in eclipse
3, select "Use Tomcat Installation" at "Server Locations", you can see clearly that the default is "used Workspace metadata", that is, the above-mentioned directory. Then write the WebApps on the path of the deploy, as shown in:
After the modification is complete, save it. Later projects will be published under Tomcat under the WebApps.
Note: In Eclipse, publishing a Web project in this way will divide the original server's Conf folder into a backup folder and create a new folder of its own to serve as a Web project for configuring Eclipse Publishing. So you still want to write a Java Web project using MyEclipse.
WebApp deploying to a Tomcat server