标签: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配置文件扫描包路径
标签:des io ar os sp java for 文件 on
原文地址:http://my.oschina.net/u/1034537/blog/349835