b328361744 2016-10-24 09:36 采纳率: 0%
浏览 921

这个问题谁遇到过,springmvc+hibernate 307错误

ERROR ContextLoader:307 - Context initialization failed

org.springframework.beans.factory.BeanCreationException:

Error creating bean with name 'userController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.tianbo.serviceimpls.UserInfoServiceImpls] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

  • 写回答

1条回答 默认 最新

  • 乐韬科技 2016-10-25 11:08
    关注

    使用spring mvc的注解配置或xml配置
    userController控制器依赖的 service和dao层都需要写上相关的注解配置信息,你仔细查下userController依赖的相关userService和userDao的类有没有写注解或xml的配置

    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大