导入maven项目时出现 Version of Spring Facet could not be detected. 解决方法

问题出现在:

导入maven项目的时候,其中,我的这个maven项目是由Spring,Struts2,Mybatis搭建的。

问题截图:


导入maven项目时出现 Version of Spring Facet could not be detected.  解决方法
 即Spring的版本不能被检测到。此时需要做的就是找到spring所需的版本,然后在项目中配置一下。

解决方式:

1:cancel掉,进入项目之后会发现很多小红叉,不用管。

2:右击项目,点击最下方的properties

3:找到Java Compiler,改成如下所示
导入maven项目时出现 Version of Spring Facet could not be detected.  解决方法

4:这时发现小红叉消失。但目前仅解决的是java版本过低,导致的@override不认识,如果要解决开篇提到的问题,此时要做的如下所示


导入maven项目时出现 Version of Spring Facet could not be detected.  解决方法
 
 5:问题解决