Version of Spring Facet could not be detected.

问题出现在:

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

 

问题截图:


Version of Spring Facet could not be detected._第1张图片
 即Spring的版本不能被检测到。此时需要做的就是找到spring所需的版本,然后在项目中配置一下。

 

解决方式:

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

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

3:找到Java Compiler,改成如下所示
Version of Spring Facet could not be detected._第2张图片

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


Version of Spring Facet could not be detected._第3张图片
 
 5:问题解决

你可能感兴趣的:(spring,@Override,facet)