码迷,mamicode.com
首页 > 其他好文 > 详细

No matching bean of type [xx] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency

时间:2015-07-14 13:11:13      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:

这个看起来很弱爆的问题其实是因为其他的配置文件中已经出现了为xx定义好的注入.如果用@Autowired就会得到上面的错误 , 但是用@Resource的时候就会看到类似下面的错误

Bean named ‘moneyRecordDao‘ must be of type [com.fuscent.core.dao.MoneyRecordDao], but was actually of type [com.yooli.currentproduct.dao.impl.MoneyRecordDaoImpl]

 

感觉自己弱爆了啊.

No matching bean of type [xx] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency

标签:

原文地址:http://www.cnblogs.com/taojintianxia/p/4644997.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!