Browse Source

Merge branch '2.1.x'

# Conflicts:
#	spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/config/BlockingLoadBalancerClientAutoConfiguration.java
pull/643/head
Olga Maciaszek-Sharma 5 years ago
parent
commit
c437379857
  1. 2
      spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/reactive/ReactorLoadBalancerClientAutoConfiguration.java
  2. 4
      spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/config/BlockingLoadBalancerClientAutoConfiguration.java

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

@ -53,6 +53,8 @@ public class ReactorLoadBalancerClientAutoConfiguration {
@Bean @Bean
@ConditionalOnClass( @ConditionalOnClass(
name = "org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient") name = "org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient")
@ConditionalOnProperty(value = "spring.cloud.loadbalancer.ribbon.enabled",
matchIfMissing = true)
public ReactorLoadBalancerClientRibbonWarnLogger reactorLoadBalancerClientRibbonWarnLogger() { public ReactorLoadBalancerClientRibbonWarnLogger reactorLoadBalancerClientRibbonWarnLogger() {
return new ReactorLoadBalancerClientRibbonWarnLogger(); return new ReactorLoadBalancerClientRibbonWarnLogger();
} }

4
spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/config/BlockingLoadBalancerClientAutoConfiguration.java

@ -42,7 +42,7 @@ import org.springframework.web.client.RestTemplate;
* An autoconfiguration for {@link BlockingLoadBalancerClient}. * An autoconfiguration for {@link BlockingLoadBalancerClient}.
* *
* @author Olga Maciaszek-Sharma * @author Olga Maciaszek-Sharma
* @since 2.2.0 * @since 2.1.3
*/ */
@Configuration @Configuration
@LoadBalancerClients @LoadBalancerClients
@ -55,6 +55,8 @@ public class BlockingLoadBalancerClientAutoConfiguration {
@Bean @Bean
@ConditionalOnClass( @ConditionalOnClass(
name = "org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient") name = "org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient")
@ConditionalOnProperty(value = "spring.cloud.loadbalancer.ribbon.enabled",
matchIfMissing = true)
public BlockingLoadBalancerClientRibbonWarnLogger blockingLoadBalancerClientRibbonWarnLogger() { public BlockingLoadBalancerClientRibbonWarnLogger blockingLoadBalancerClientRibbonWarnLogger() {
return new BlockingLoadBalancerClientRibbonWarnLogger(); return new BlockingLoadBalancerClientRibbonWarnLogger();
} }

Loading…
Cancel
Save