Closed otrosien closed 8 years ago
I'd rather put a conditional on the autoconfig for spring.cloud.etcd.enabled
.
In other places there is a dedicated property for enabling health checks (e.g. "eureka.client.healthcheck.enabled") https://github.com/spring-cloud/spring-cloud-netflix/blob/master/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka/EurekaDiscoveryClientConfiguration.java
Yup and @ConditionalOnProperty(value = "eureka.client.enabled", matchIfMissing = true)
on the whole class.
I'll have a look into it, and will open a new PR.
Initial shot (don't know for sure about refreshability of etcdProperties) there's also no test suite for this project....