【Target runtime Apache Tomcat v7.0 is not defined.-----解决】

项目检出后,发现是Tomcat7 发布的,修改文件:

工作空间--->项目名称--->.settings
--->org.eclipse.wst.common.project.facet.core
  <?xml version="1.0" encoding="UTF-8"?>
<faceted-project>

  <runtime name="Apache Tomcat v7.0"/>
  
  <fixed facet="jst.web"/>
  <fixed facet="java"/>
  <fixed facet="wst.jsdt.web"/>
  <installed facet="java" version="1.7"/>
  <installed facet="jst.web" version="3.0"/>
  <installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>

<runtime name="Apache Tomcat v7.0"/> 删除掉保存文件即可

然后再回到项目中【更新】即可~

猜你喜欢

转载自blog.csdn.net/qq_44731019/article/details/120251663