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的配置

    评论

报告相同问题?

悬赏问题

  • ¥15 MATLAB动图的问题
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名