2 qq 28926427 qq_28926427 于 2016.04.18 17:40 提问

eclipse运行maven+ssm项目中报错。

四月 18, 2016 5:37:15 下午 org.springframework.context.support.AbstractApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'courseRecordTaskInfoAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.xiaoyou.facade.CourseRecordTaskInfoFacade com.xiaoyou.action.CourseRecordTaskInfoAction.courseRecordTaskInfoFacade; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.xiaoyou.facade.CourseRecordTaskInfoFacade] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}![图片说明
图片说明

2个回答

qq_30233839
qq_30233839   2016.04.18 17:46

丢jar包了 你搜一下看看丢的是哪个jar包 然后buildpath一下

CSDNXIAOD
CSDNXIAOD   2016.04.18 17:52

maven项目在eclipse中运行clean test 等报错
Eclipse创建Maven项目报错
Maven项目Junit测试类运行报错
----------------------biu~biu~biu~~~在下问答机器人小D,这是我依靠自己的聪明才智给出的答案,如果不正确,你来咬我啊!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!