我正在Eclipse中开发一个网络应用程序。部署目录树位于哪里?在我的Java工作区树中的Apache目录结构或一些子目录树结构中?
这一切都取决于你的Tomcat服务器配置。默认值为: .metadata / .plugins / org.eclipse.wst.server.core / tmp0 。但是您可以在Tomcat服务器配置中更改此选项。要执行此操作,请转到Tomcat服务器上的服务器视图,双击,然后修改服务器路径和部署路径:
我个人使用Tomcat安装进行完全控制(默认部署路径即 wtpwebapps )。
如果无法在服务器位置部分更改某些内容,请参阅此答案如何改变。
I'm developing a web app in Eclipse. where is the deployment directory tree situated? In the Apache directory structure or some sub-directory tree structure in my Java workspace tree? I ask because I went browsing the directory tree(s) when an update to my tutorial app didn't work and, assuming that the src subtree represents my development directory tree I was hoping that the WebContent/WEB-INF subtree would contain my deployment tree (I also assumed that when I run the app the deployment directory structure would be automatically created for me), but I found the WEB-INF empty.
解决方案I'm developing a web app in Eclipse. where is the deployment directory tree situated? In the Apache directory structure or some sub-directory tree structure in my Java workspace tree?
It all depends on how your Tomcat Server is configured. The default should be: .metadata/.plugins/org.eclipse.wst.server.core/tmp0. But you can change this in the Tomcat server configuration. To do so, go to the Servers view, double-click on your Tomcat server and modify the Server path and Deploy path:
I personally use the Tomcat installation for full control (and the default deploy path i.e. wtpwebapps).
If it is not possible to change something in the "Server Locations" section, then see this answer on how to change that.
更多推荐
Eclipse中的部署目录在哪里?
发布评论