|
|
@ -52,6 +52,7 @@ import org.springframework.context.annotation.Configuration; |
|
|
|
public class CommonsClientAutoConfiguration { |
|
|
|
public class CommonsClientAutoConfiguration { |
|
|
|
|
|
|
|
|
|
|
|
@Configuration |
|
|
|
@Configuration |
|
|
|
|
|
|
|
@ConditionalOnClass(HealthIndicator.class) |
|
|
|
@EnableConfigurationProperties(DiscoveryClientHealthIndicatorProperties.class) |
|
|
|
@EnableConfigurationProperties(DiscoveryClientHealthIndicatorProperties.class) |
|
|
|
@ConditionalOnBean(DiscoveryClient.class) |
|
|
|
@ConditionalOnBean(DiscoveryClient.class) |
|
|
|
@ConditionalOnDiscoveryEnabled |
|
|
|
@ConditionalOnDiscoveryEnabled |
|
|
@ -59,7 +60,6 @@ public class CommonsClientAutoConfiguration { |
|
|
|
protected static class DiscoveryLoadBalancerConfiguration { |
|
|
|
protected static class DiscoveryLoadBalancerConfiguration { |
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
@Bean |
|
|
|
@ConditionalOnClass(HealthIndicator.class) |
|
|
|
|
|
|
|
@ConditionalOnDiscoveryHealthIndicatorEnabled |
|
|
|
@ConditionalOnDiscoveryHealthIndicatorEnabled |
|
|
|
public DiscoveryClientHealthIndicator discoveryClientHealthIndicator( |
|
|
|
public DiscoveryClientHealthIndicator discoveryClientHealthIndicator( |
|
|
|
ObjectProvider<DiscoveryClient> discoveryClient, |
|
|
|
ObjectProvider<DiscoveryClient> discoveryClient, |
|
|
@ -68,7 +68,6 @@ public class CommonsClientAutoConfiguration { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
@Bean |
|
|
|
@ConditionalOnClass(HealthIndicator.class) |
|
|
|
|
|
|
|
@ConditionalOnProperty( |
|
|
|
@ConditionalOnProperty( |
|
|
|
value = "spring.cloud.discovery.client.composite-indicator.enabled", |
|
|
|
value = "spring.cloud.discovery.client.composite-indicator.enabled", |
|
|
|
matchIfMissing = true) |
|
|
|
matchIfMissing = true) |
|
|
|