简体   繁体   English

在动态WebProject中设置上下文路径

[英]Set Context Path in Dynamic WebProject

I'm trying to set the context path for a web project, but I was not able to save it directly in eclipse. 我正在尝试为Web项目设置上下文路径,但无法将其直接保存在Eclipse中。

Then I thought of directly making the change in the file to avoid this. 然后我想到直接在文件中进行更改以避免这种情况。

在此处输入图片说明

Here is my file structure: 这是我的文件结构:

在此处输入图片说明

Which file holds the context path in the webproject - look at my base structure before answering the question. 哪个文件保存了Web项目中的上下文路径-在回答问题之前先查看我的基本结构。

Go to .setting folder under project folder. 转到项目文件夹下的.setting文件夹。

.settings/org.eclipse.wst.common.component .settings / org.eclipse.wst.common.component

search for property " property name="context-root" " then set the desired value. 搜索属性“ property name =“ context-root” “,然后设置所需的值。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM