在eclipse里导入maven项目时出现错误“Autowired cannot be resolved to a type”

本人在导入同事给的maven项目时,一直出现错误“Autowired cannot be resolved to a type”,也在网上查阅了很多的资料,发现大家主要给与了两种方案,现在整理一下,仅供大家参考:

方案一:

将导入的项目从eclipse里删除,重新在eclipse里,选择空白处鼠标右击选择“Import”--->"Maven"--->"Existing Maven Project";导入maven项目即可

在eclipse里导入maven项目时出现错误“Autowired cannot be resolved to a type”

方案二:

找到对应的对应显示错误的,“Markers”--->"fix "--->安装对应的jar包即可;