Quiet_a 2016-03-12 02:17 采纳率: 0%
浏览 2053

Spring注入问题 框架是ssm+中间件+Zookeeper

错误日志
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)}

  • 写回答

2条回答

  • 二三三 2016-03-12 08:55
    关注

    没代码不好弄啊,不过可以看出是bean 'weipumallHappyPayController没有创建成功,主要原因应该在No qualifying bean of type [net.viservice.service.weipu.MemberCardService] found for dependency这一点,在好好看看,也可以把你的代码贴出来。

    评论

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站