Target runtime Apache Tomcat v7.0 is not defined.错误解决方法

Eclipse导入工程后工程上显示一个小红叉,但工程里没有文件错误,也没有语法错误,在problems中显示错误是:Target runtime Apache Tomcat 6.0 is not defined. 

【项目】->【右键】->【Properties】.

Target runtime Apache Tomcat v7.0 is not defined.错误解决方法_第1张图片

找到【Target runtime】选项 -》选择当前项目的服务器,刷新项目就会发现错误不见了

Target runtime Apache Tomcat v7.0 is not defined.错误解决方法_第2张图片

你可能感兴趣的:(Target runtime Apache Tomcat v7.0 is not defined.错误解决方法)