Open HaojunRen opened 3 years ago
In Spring Cloud 2020, Ribbon
has been replaced with Spring Cloud LoadBalancer
, OpenTracing Spring Cloud has forced to add Ribbon
jar, so following exception has been threw out and the service will stop
discovery 2021-04-23 19:31:35,390 WARN [main] [] [] [] [] [] [] [] [] [] [] [] [] [] o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext [AbstractApplicationContext.java:591] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'AFeignImpl': Unsatisfied dependency expressed through field 'bFeign'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.nepxion.discovery.guide.service.feign.BFeign': Unexpected exception during bean creation; nested exception is java.lang.NoClassDefFoundError: org/springframework/cloud/openfeign/ribbon/LoadBalancerFeignClient
discovery 2021-04-23 19:31:35,397 WARN [main] [] [] [] [] [] [] [] [] [] [] [] [] [] o.s.c.a.AnnotationConfigApplicationContext [AbstractApplicationContext.java:1061] - Exception thrown from ApplicationListener handling ContextClosedEvent
···
Thanks a lot