-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properties eureka.client.enabled and spring.cloud.consul.discovery.enabled have no effects without bootstrap #785
Comments
When I try the branch |
Hello, Thank you very much for your response. I've just pushed a new commit to
The Consul discovery client is registered in the Spring context despite For information, I made my tests on Debian Bullseye and Ubuntu Jammy, Java 17 and Gradle 7.4.2. You could also check out the branch Huy |
Describe the bug
I try to locate the config server by using a discovery service client (Eureka or Consul). When only one artifact
spring-cloud-starter-netflix-eureka-client
orspring-cloud-starter-consul-discovery
is present in the classpath, the app locates successfully the config server, regardless the value ofeureka.client.enabled
andspring.cloud.consul.discovery.enabled
(check out themain
orfeature/register_with_consul
branches of the sample project).When both artifacts
spring-cloud-starter-netflix-eureka-client
orspring-cloud-starter-consul-discovery
are present in the classpath, the Consul discovery client is always used by the app to locate the config server, regardless the value ofeureka.client.enabled
andspring.cloud.consul.discovery.enabled
(check out thefeature/without_bootstrap
branch of the sample project).On the other hand, it works as expected when I use the Config First Bootstrap with Discovery Lookup First enabled (
feature/with_bootstrap
branch of the sample project).Sample
Here is the link to the sample project https://github.com/xhuy-le/spring-cloud-discovery-client-issues.
The text was updated successfully, but these errors were encountered: