-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Including spring-cloud-starter-eureka-server in dependencies causes application startup to fail #255
Comments
At this point my code only consists of the main application class, the only annotations on it are configuration and enable auto configuration. Adding enable eureka server annotations does not change the output above. |
That stack trace actually isn't telling use anything. There will be one higher up the console causing this. My guess (since it works for me with Maven) is that you are falling foul of Gradle's idiosyncratic dependency resolution rules. You can use the https://github.com/spring-gradle-plugins/dependency-management-plugin with the spring-cloud-starter-parent as a bom, and I think it should fix the classpath. |
That appears to have worked. Should a note be added to the docs about this idiosyncrasy? Or a Gradle version of the example project put together? I'm happy to contribute time into doing either of these. I'll leave this issue open while I await a response. |
There's already a pull request here: spring-cloud-samples/eureka#9 for one sample. If you want to add some Gradle snippets to the user guide that would be excellent too. |
Hello Guys I am new to spring boot and all was trying to configure eureka server. Below are details and error. Need help here pom.xml
application main class @EnableEurekaServer
} application.yml Error: |
@alok001 it's generally preferable to open a new issue if you think you've found a bug. I was unable to reproduce your error. If you can provide a full project (zip or github) that reproduces the problem, open a new issue. Also, |
Without "spring-cloud-starter-eureka-server" in the dependencies, the SpringApplication starts up without issue. When I add the eureka server starter to dependencies the SpringApplication fails during startup with the following stacktrace:
Gradle file is as follows:
The text was updated successfully, but these errors were encountered: