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

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

eclipse 导入项目报Versions of Spring facet could not be detected_第1张图片eclipse 导入项目报Versions of Spring facet could not be detected_第2张图片

点击next

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

eclipse 导入项目报Versions of Spring facet could not be detected_第3张图片

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

eclipse 导入项目报Versions of Spring facet could not be detected_第4张图片eclipse 导入项目报Versions of Spring facet could not be detected_第5张图片

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

eclipse 导入项目报Versions of Spring facet could not be detected_第6张图片

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

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

<beansProjectDescription>

  <springVersion>2.0springVersion>

beansProjectDescription>

粘贴进去保存。

eclipse 导入项目报Versions of Spring facet could not be detected_第7张图片

点击filters,结果如图

eclipse 导入项目报Versions of Spring facet could not be detected_第8张图片

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




你可能感兴趣的:(学习笔记)