错误日志
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weipumallHappyPayController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [net.viservice.service.weipu.MemberCardService] 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)}
.........
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [net.viservice.service.weipu.MemberCardService] 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)}
Spring注入问题 框架是ssm+中间件+Zookeeper
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
二三三 2016-03-12 08:55关注没代码不好弄啊,不过可以看出是bean 'weipumallHappyPayController没有创建成功,主要原因应该在No qualifying bean of type [net.viservice.service.weipu.MemberCardService] found for dependency这一点,在好好看看,也可以把你的代码贴出来。
解决 无用评论 打赏 举报