Description Resource Path Location Type Target runtime Apache Tomcat v8.0 is not defined.

时间:2024-04-13 19:23:53

eclipse导入的项目报错误,但是不影响项目的运行及正常访问,根据提示出现错误的原因是:项目设置的Tomcat和当前主机使用的Tomcat版本不一致,导致有错误提示,那么如何消除这个红点呢?
Description	Resource	Path	Location	Type Target runtime Apache Tomcat v8.0 is not defined.

  1. 在导航栏点击search下拉列表的fileDescription	Resource	Path	Location	Type Target runtime Apache Tomcat v8.0 is not defined.
  2. 回车,在当前项目中找到包含runtime设置Tomcat版本的文件Description	Resource	Path	Location	Type Target runtime Apache Tomcat v8.0 is not defined.
  3. 改为当前主机所使用的Tomcat版本即可。我使用的是9.0,将8.0改为9.0即可,然后刷新项目,报错消失。Description	Resource	Path	Location	Type Target runtime Apache Tomcat v8.0 is not defined.