-
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
Allow consul config to use something other than spring.application.name #279
Comments
|
@spencergibb , spring.cloud.config was the only thing I could find to override the defaults, you are right we dont use labels at all. Here is my requirement, In Consul our Key values are stored within a folder name which is different from my Application Name. For instance here is an ex. In Consul, Values are stored in under http://localhost:8500/ui/#/dc1/kv/private/consulfoldername/ How would I achieve my requirement. |
The |
Adds support for |
@spencergibb , thanks much. |
@spencergibb , For the tests I am seeing the key values are not picked up by spring from consul. Since I have my DBUrl in consul, I am seeing below error. Here is the stacktrace..
|
@ummershervani that seems unrelated to this issue. Please open a new issue with instructions to reproduce or a sample project that reproduces the problem. |
@spencergibb , ofcouse it is a different issue. Not sure its very critical, problem disappeared when i include below in bootstrap properties under test.resources. I will get one issue open when I get in to root cause. I would assume this should have picked up from bootstarp.properties under main. |
In the docs its mentioned that. You can override the Config look up by setting up these params.
spring.cloud.config.name
spring.cloud.config.label
spring.cloud.config.profile.
But my application doesn't start as its trying to find folder named "Application Name" under consul. Which obviously doesn't exist and causes failure. Overriding option does'nt work.
What I am using
compile('org.springframework.cloud:spring-cloud-starter-consul-config')
compile('org.springframework.cloud:spring-cloud-starter-consul-discover
The text was updated successfully, but these errors were encountered: