Lion_King_Leo
Lion_King_Leo
2017-07-12 08:11

错误资源注入依赖失败,ssm框架整合,求大神来看,谢谢

  • 框架

ssm框架我也算是比较熟悉了,刚开始接触那会到是报过注入失败的错,当时都很快解决了,这次的就是找不到原因,用的注解注入,请大神帮忙看下,谢谢谢谢.

报错信息如下:

警告: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tbItemController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.taotao.service.TbItemService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(mappedName=, shareable=true, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER, lookup=)}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答