springcloud-gateway
常见错误
loadbalancer开启后报错
开启下面开关
spring:
cloud:
loadbalancer:
ribbon:
enabled: true
后,控制台报错
Parameter 0 of method loadBalancerWebClientBuilderBeanPostProcessor in org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration required a bean of type 'org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction' that could not be found.
The following candidates were found but could not be injected:
- Bean method 'deferringLoadBalancerExchangeFilterFunction' in 'LoadBalancerBeanPostProcessorAutoConfiguration.ReactiveLoadBalancerConfig' not loaded becau