Browse Source

Allow overriding ReactorLoadBalancerExchangeFilterFunction.

pull/695/head
Olga Maciaszek-Sharma 5 years ago
parent
commit
7716c939b7
  1. 2
      spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/reactive/ReactorLoadBalancerClientAutoConfiguration.java

2
spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/reactive/ReactorLoadBalancerClientAutoConfiguration.java

@ -23,6 +23,7 @@ import org.apache.commons.logging.LogFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.client.loadbalancer.LoadBalanced; import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
@ -56,6 +57,7 @@ public class ReactorLoadBalancerClientAutoConfiguration {
@Conditional(OnNoRibbonDefaultCondition.class) @Conditional(OnNoRibbonDefaultCondition.class)
protected static class ReactorLoadBalancerExchangeFilterFunctionConfig { protected static class ReactorLoadBalancerExchangeFilterFunctionConfig {
@ConditionalOnMissingBean
@Bean @Bean
public ReactorLoadBalancerExchangeFilterFunction loadBalancerExchangeFilterFunction( public ReactorLoadBalancerExchangeFilterFunction loadBalancerExchangeFilterFunction(
ReactiveLoadBalancer.Factory loadBalancerFactory) { ReactiveLoadBalancer.Factory loadBalancerFactory) {

Loading…
Cancel
Save