My working space: d:workspace
Web project name: XXX
After eclipse is configured with Tomcat, the path published to IS D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Under
This path is too deep to bear.
I want to use Tomcat's default path
For example, my Tomcat is installed under D:\tomcat
The default publishing path is D:\tomcat\webapps
How do I make changes in eclipse?
The answer is below.
1: Locate the Server panel, right-click the current Tomcat, remove all of the projects first
2: Right-click the Tomcat and choose clean ... Clear it.
3: Double click on the Tomcat, will open the Properties panel, find the second Server on the left Locations, your box selected should be the first, you select the third, in the Server path to enter the path you want, save is ready
You can also choose the second one is the installation path for Tomcat
Of course, you can also publish by configuring Tomcat
Modify Server.xml
Add in front of </Host>
<context docbase= "D:\apache-tomcat-6.0.20\webapps\Test" path= "/test" reloadable= "true" source= " Org.eclipse.jst.jee.server:Test "/>
Path refers to the access path: http://localhost:8080/Test
Docbase is the Tomcat path