1.打开。setting里的
org.eclipst.wst.commom.project.facets.core.xml文件
2.改成如下内容:
<?xml version="1.0" encoding="UTF-8"?>
<fixed facet=" wst.jsdt.web"/>
<installed facet=" wst.jsdt.web" version="1.0"/>
<installed facet=" jst.web" version="3.0"/>
<installed facet="java" version="1.7"/>
<fixed facet=" wst.jsdt.web"/>
<installed facet=" wst.jsdt.web" version="1.0"/>
<installed facet=" jst.web" version="3.0"/>
<installed facet="java" version="1.7"/>
3.重启eclipse
转载自:点击打开链接