1. 修改工程属性文件.perject
添加
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
到<natures></natures>节点下
2. 选中项目右键Properties --->Project Facets--->勾选 Dynamic Web Module、 Java
3.左下角 Further configuration available --->webContent 改成 WebRoot 保存应用即可