缺省情况下,Eclipse将Web应用程序部署到名为wtpwebapps
的内部插件文件夹,该文件夹位于以下目录中:
{Your_Workspace}/.metadata/.plugins/org.eclipse.wst.server.core/tmp{number}/wtpwebapps
#Example 1 - Windows
C:\Users\mkyong\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
#Example 2 - Mac OSX
/Users/mkyong/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
怎么运行的
在“服务器”视图中,双击“ Tomcat服务器”,在“ Server Locations
定义了部署工作
要编辑默认行为,请单击“ Open Launch Configuration
,选择“ Arguments
选项卡,然后在VM参数中定义部署路径:
VM参数:
-Dcatalina.base="/Users/mkyong/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1"
-Dcatalina.home="/Users/mkyong/Downloads/apache-tomcat-7.0.29"
-Dwtp.deploy="/Users/mkyong/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps"
-Djava.endorsed.dirs="/Users/mkyong/Downloads/apache-tomcat-7.0.29/endorsed"
翻译自: https://mkyong.com/eclipse/where-is-eclipse-deploy-web-application-tomcat/