java-spring-cloud icon indicating copy to clipboard operation
java-spring-cloud copied to clipboard

What's the plan for supporting Spring Cloud 2020

Open HaojunRen opened this issue 4 years ago • 1 comments

Thanks a lot

HaojunRen avatar Feb 12 '21 12:02 HaojunRen

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
···

HaojunRen avatar Apr 23 '21 11:04 HaojunRen