It appears that the Web Project,“”,has no Web Root directory setup

1 错误描述

It appears that the Web Project,“”,has no Web Root directory setup


2 错误原因

由于项目是用eclipse新建的,web的根目录文件夹是WebContent,而MyEclipse新建的项目的Web根目录是WebRoot,直接将eclipse项目拷贝到新建的MyEclipse项目中,并将WebRoot文件目录删除,导致编译报错


3 解决办法

点击上图中的MyEclipse Web project properties,进入Web-root folder和 Web Context-root的修改

It appears that the Web Project,“”,has no Web Root directory setup