-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
multidocument files from config server have the same property name #1778
Comments
The only workaround is to not use multi-document files. |
Spring boot itself handles multi-document .yml files gracefully by appending "(document #1)" etc. to each unique property source's name. It might be a bit naïve of me to ask, but can't this idea be implemented by the config server too? Here is an example from the log trace, you can see the appended suffix when you scroll all the way to the right:
|
This is already fixed |
Does this mean that the option to use multi-document files is dropped? I think this is one of the neat features in spring. |
That statement was to mean until the fix was deployed as part of 3.0.1. This is included in spring cloud 2020.0.2 |
…d they aren't supported. (spring-cloud/spring-cloud-config#1778)
Using Multi document is not working as expected, I am using spring-cloud-config-server with version 3.1.8 and spring boot 2.7.6. I have 2 use cases where it is not working as expected. ### Usecase1: application.yml
test.yml
Now when I am running the config server using DEV profile, it is only returning me ### Usecase2: application.yml
integrations.yml
Now when I am running the config server using DEV profile, it is not returning me any properties. I am expecting apiKey and endpoint to be returned as they are common properties. Now if I include on-profile: dev, I get the properties defined in DEV mode. I am not understanding what is happening. Can someone please help? |
#1777 (comment)
The text was updated successfully, but these errors were encountered: