eclipse 导入项目报Versions of Spring facet could not be detected

找到Project migration 窗口 need migration 的项目,点击箭头指向的按钮。

eclipse 导入项目报Versions of Spring facet could not be detectedeclipse 导入项目报Versions of Spring facet could not be detected

点击next

如下图,发生报错信息,信息为Versions of Spring facet could not be detected

eclipse 导入项目报Versions of Spring facet could not be detected

查看工作空间.metadata/.log下的报错信息,

eclipse 导入项目报Versions of Spring facet could not be detectedeclipse 导入项目报Versions of Spring facet could not be detected

发现工作空间下找不到.springBeans这个文件。点击Migration FAQ(项目迁移的常见问题及解决方案。)

eclipse 导入项目报Versions of Spring facet could not be detected

找到解决方案,在项目new一个新文件,起名为.springBeans,然后

<?xml version="1.0" encoding="UTF-8"?>

<beansProjectDescription>

  <springVersion>2.0</springVersion>

</beansProjectDescription>

粘贴进去保存。

eclipse 导入项目报Versions of Spring facet could not be detected

点击filters,结果如图

eclipse 导入项目报Versions of Spring facet could not be detected

取消该勾选,OK,然后重新点击第一张图中的迁移,不报错了。