Eclipse如何使用Tomcat部署Web应用程序

Eclipse如何使用Tomcat部署Web应用程序

问题描述:

Eclipse如何在内部使用Apache(或Tomcat)。 Beacause它不会在Tomcat的webapps目录中部署我们的Web应用程序。那么它如何做呢?

How does Eclipse work internally with Apache (or Tomcat). Beacause it doesn't deploy our Web Application inside "webapps" directory of Tomcat. So how does it do it??

默认情况下,Eclipse部署 *。war $ c位于以下目录中的名为 wtpwebapps 的内部 webapps 文件夹内的$ c>文件

By default Eclipse deploys *.war files inside a internal webapps folder called wtpwebapps which is located in the following directory:

{Workspace_location} /。metadata / .plugins / org.eclipse.wst.server.core / tmp0 / wtpwebapps

然而,可以使用服务器选项面板中定义的 服务器位置选项来定制此行为,方法是从服务器双击所需的服务器在Eclipse中查看:

This behaviour however is customizable using Server Locations option defined in server options panel accesible by double clicking the desired server from Servers view in Eclipse: