首页 > 编程语言 > 详细

spring异常

时间:2014-11-28 12:47:37      阅读:232      评论:0      收藏:0      [点我收藏+]

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘Controller‘: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.jintong.reward.welfareunit.service.OrganService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)}

原因:未能向‘Controller‘自动注入service,service不存在或初始化service bean失败,dao未注入成功,dao初始化失败,主意mybatis配置文件扫描包路径

spring异常

原文:http://my.oschina.net/u/1034537/blog/349835

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!