ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userController’: Unsatisfied dependency expressed through field ‘discoveryClient’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.netflix.discovery.DiscoveryClient’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
No qualifying bean of type 'com.netflix.discovery.DiscoveryClient' available

DiscoveryClient这个类有两个,导入的不一样会报错

相关文章:

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