Skip to content

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

Merged
ryanjbaxter merged 1 commit intospring-cloud:mainfrom
ryanjbaxter:property-source-order
Jul 4, 2024
Merged

Add logic to be more specific about when mark a property source to be profile specific#2437
ryanjbaxter merged 1 commit intospring-cloud:mainfrom
ryanjbaxter:property-source-order

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
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