码迷,mamicode.com
首页 > 编程语言 > 详细

spring异常

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

标签:des   io   ar   os   sp   java   for   文件   on   

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异常

标签:des   io   ar   os   sp   java   for   文件   on   

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

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