Conway

Results 3 comments of Conway

I also encountered the same problem, I used the webflux framework and turned on loadbalancer. springcloud2023.0.0 spring-cloud-commons4.1.1 springboot(spring-boot-starter-webflux)3.2.3 ![image](https://github.com/spring-cloud/spring-cloud-commons/assets/29751360/76af7474-0fe2-46f7-b271-fd8279b045d6) trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for...

After tracking down, I found that the initialization order of these two classes was not as expected. In fact, 'LoadBalancerBeanPostProcessorAutoConfiguration' was initialized before 'LoadBalancerAutoConfiguration'. ![image](https://github.com/spring-cloud/spring-cloud-commons/assets/29751360/ffe971bd-e452-4135-a5b8-32dd08b297d8)

I currently have a solution. Exclude this automation configuration 'org.springframework.cloud. Client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration', customize an automation configuration of 'WebClient. Builder', and add the processing in the 'LoadBalancerWebClientBuilderBeanPostProcessor' to the custom 'WebClient. Builder'...