org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.wh.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.wh.
 

今天在运行SSH时报了一个这个错误,翻译了一下是:org.springframework.beans.factory。NoSuchBeanDefinitionException:没有符合条件的[com.wh.service]类型的bean。UserService]为依赖项找到:期望至少有一个bean可以作为这个依赖项的autowire候选。依赖注释:{@org.springframework.beans.factory.annotation.Autowired(要求= true)}。

Autowired注入

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.wh.

找了很久发现是

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.wh.

实现类中没有写这个

 

相关文章:

  • 2022-12-23
  • 2021-07-01
  • 2021-08-08
  • 2021-12-18
  • 2021-11-14
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2021-04-09
  • 2021-08-06
  • 2021-10-08
  • 2021-11-01
  • 2022-12-23
  • 2022-02-06
相关资源
相似解决方案