现在的位置: 首页 > 综合 > 正文

myeclispe 中deploy时为什么不能出现deploy location?

2017年08月22日 ⁄ 综合 ⁄ 共 401字 ⁄ 字号 评论关闭

在myeclipse中deploy:选择了一个工程,添加一个新的deploy工程时,不能正常出现deploy
Location,可能的原因是没有在mymatadata中添加context-root="/",另外webrootdir属性也要设置正确。一个常
见的配置如下:

<?xml version="1.0" encoding="UTF-8"?>
<project-module
  type="WEB"
  name="service"
  id="myeclipse.1176958825862"
  context-root="/service"
  j2ee-spec="1.4"
  archive="service.war">
  <attributes>
    <attribute name="webrootdir" value="&lt;prjroot&gt;" />
  </attributes>
</project-module>

抱歉!评论已关闭.