The JavaWeb project in eclipse is published with tomcat - the problem of deployment folder location (wtpwebapps)

Create a new Dynamic Web Project in eclipse, configure the local tomcat and write the code and select Run on Server, but after running, it is found that the webapps in the tomcat installation directory does not have the created project name.

Reason: Eclipse is deployed to .metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps in the working directory by default, and the tmp0 folder stores the information of the project.

Modify In order to deploy the project to the webapps in the tomcat installation directory by default, show view—>servers—> find the tomcat that needs to be modified—> right click


①Create a new Tomcat server
in the project ②Add the project to the right side in add and remove
③Right-click tomcat, select the second item Use Tomcat installation in server locations, change the Deploy path to webapps ④Save and
close

Reference: https://blog.csdn.net/liuhaoyang558/article/details/70170290

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324497116&siteId=291194637