在动态Web项目中设置上下文路径

时间:2014-05-02 21:56:57

标签: java eclipse contextpath

我正在尝试为web项目设置上下文路径,但我无法直接在eclipse中保存它。

然后我想到直接在文件中进行更改以避免这种情况。

enter image description here

这是我的文件结构:

enter image description here

哪个文件包含webproject中的上下文路径 - 在回答问题之前查看我的基本结构。

1 个答案:

答案 0 :(得分:1)

转到项目文件夹下的.setting文件夹。

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

搜索属性“属性名称=”context-root“”然后设置所需的值。

enter image description here