Skip to content
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

Add logic to be more specific about when mark a property source to be profile specific #2437

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

ryanjbaxter
Copy link
Contributor

@ryanjbaxter ryanjbaxter commented Jul 3, 2024

Fixes #2417

The problem here two fold.

The profile name (def) is a partial match to the -default in the property source name so we add the Option marking the property source as profile specific. This effects the way Boot orders the property source since profile specific property sources should be ranked higher.
The overrides property source is never marked profile specific and IMO it should always be ranked profile specific so it it always ranked higher.
The logic in the PR is not perfect but honestly it can't be until we add this functionality #2291

@ryanjbaxter ryanjbaxter merged commit 37656d3 into spring-cloud:main Jul 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong ordering of property sources in config client when using spring.config.import
3 participants