Eclipse中的部署目录在哪里?

编程入门 行业动态 更新时间:2024-10-08 14:48:28
本文介绍了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中的部署目录在哪里?

本文发布于:2023-11-12 14:36:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581759.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目录   Eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!