首页 > 代码库 > spring异常

spring异常

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