-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Propertysources precedence when merging the property source from @ConfigurationProperties
' locations
#5135
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
Comments
@ilayaperumalg Originally, the location attribute ignored the rest of the environment completely. The |
@wilkinsona I see. I agree that it makes sense to keep one way of support and less complexity. Would be nice if we add Javadoc that says the Thanks! |
Cool! 👍 |
When the
merge
attribute for@ConfigurationProperties
is set to true to merge the environment property sources along with the property sources specified in thelocations
, the property sources from thelocations
attribute gets the highest precedence.Is this precedence level set for a reason? I was expecting the property source from
locations
getting the lowest precedence.For instance, if I have a
commandLine
args for the application, wouldn't I expect this args override all the other property source including the one specified inlocations
attribute ofConfigurationProperties
annotation.The text was updated successfully, but these errors were encountered: