運行時沒有找到tomcat v7.0java
Eclipseweb
右鍵--》properties--》targeted runtime,把原項目的tomcat去掉勾選,換上本身的Tomcattomcat
myEclipseeclipse
在工程目錄下的.settings文件夾裏,打開org.eclipse.wst.common.project.facet.core.xml文件,其內容是:spa
<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <runtime name="Tomcat v7.0"/> <fixed facet="java"/> <fixed facet="jst.web"/> <fixed facet="wst.jsdt.web"/> <installed facet="java" version="1.6"/> <installed facet="jst.web" version="3.0"/> <installed facet="wst.jsdt.web" version="1.0"/> </faceted-project>
刪除第一句話後是code
<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <fixed facet="java"/> <fixed facet="jst.web"/> <fixed facet="wst.jsdt.web"/> <installed facet="java" version="1.6"/> <installed facet="jst.web" version="3.0"/> <installed facet="wst.jsdt.web" version="1.0"/> </faceted-project>
保存,刷新!xml