码上敲享录 > Myeclipse开发常见问题解答 > 已解决Document base xxx\WebRoot does not exist or is not a readable directory

已解决Document base xxx\WebRoot does not exist or is not a readable directory

上一章章节目录下一章 2018-08-07已有3037人阅读 评论(0)

myeclispe导入eclipse新建的项目报错:

java.lang.IllegalArgumentException: Document base xxx\WebRoot does not exist or is not a readable directory


解决方法:

因为myeclipse的资源根目录是WebRoot,而eclipse的是WebContent

1.在myeclipse工作目录下找到项目,里面有一个.setting目录,在搜索中输入

org.eclipse.wst.common.component,修改

<wb-resource deploy-path="/" source-path="/WebContent"   tag="defaultRootSource" />

,改成<wb-resource deploy-path="/" source-path="/WebRoot"  tag="defaultRootSource" />

2.在myeclipse中修改WebContent目录的名字WebRoot,右键项目refresh即可


本文链接:http://www.yayihouse.com/yayishuwu/chapter/1433


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交