-
Notifications
You must be signed in to change notification settings - Fork 541
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
@EnableDiscoveryClient doesn't register properly #172
Comments
I ran into the same issue. In my case, it happened because of a collision with a transitive dependency. I had to setup an exclusion rule for the transitive dependency: compile("org.springframework.cloud:spring-cloud-starter-consul-all") {
exclude(group: 'org.springframework.cloud', module: 'spring-cloud-netflix-core')
} |
@n3integration that's actually bad, because you won't get ribbon support. Are you using the spring boot dependency management plugin? |
@Kaffeekaethe can you show your configuration? |
@spencergibb - Thanks for the tip and being so responsive. In one of my use cases, I may need ribbon support. Also, I am using the spring boot dependency management plugin. I was receiving a similar stack trace as @Kaffeekaethe, because of the Eureka and Consul discovery clients, so I excluded the netflix-core dependency to work around the conflict. Is there another way around this without excluding the dependency? |
You'll have to share a project that duplicates the problem. |
I apologize for the delay in getting back. In my case, I am also importing |
You should be, but if you're still having the problem, I'll need to see a sample project. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
I hope this is the right place with my issue.
I've set up a Spring Boot Application two Classes.
The ServiceClass has the Annotations
And I have a seperate ControllerClass with the Annotations
I run it with
SpringApplication.run(ControllerClass.class, args)
;If I use the @EnableDiscoveryClient at the ControllerClass I get the Error:
but from what I understand, my service would actually need to send a Post Request with the information in JSON-Format.
I do not really understand where I am going wrong or if there's something wrong with the annotation.
The text was updated successfully, but these errors were encountered: