Eclipse中的部署目录在哪里? [英] Where is the deployment directory in Eclipse?

查看:683
本文介绍了Eclipse中的部署目录在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Eclipse中开发一个网络应用程序。部署目录树位于哪里?在我的Java工作空间树中的Apache目录结构或一些子目录树结构中?我问,因为当我的教程应用程序的更新不起作用时,我浏览了目录树,假设 src 子树表示我的开发目录树,我希望 WebContent / WEB-INF 子树将包含我的部署树(我也假设当我运行应用程序时,会自动为我创建部署目录结构),但是我发现WEB-INF为空。

解决方案


我正在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中的部署目录在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆