Myeclipse导入Maven项目是遇到Version of Spring Facet could not be detected.

问题出现在:

导入maven项目的时候,出现Version of Spring Facet could not be detected. 说明版本不一致,需要修改下配置


图片:Myeclipse导入Maven项目是遇到Version of Spring Facet could not be detected.

 即Spring的版本不能被检测到。此时需要做的就是找到spring所需的版本,然后在项目中配置一下。

 解决方式:

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

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

3:找到Java Compiler,改成如下所示

Myeclipse导入Maven项目是遇到Version of Spring Facet could not be detected.


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

Myeclipse导入Maven项目是遇到Version of Spring Facet could not be detected.

问题解决