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 @DynamicPropertySource to documented list of property source ordering #32901

Closed
altery opened this issue Oct 27, 2022 · 0 comments
Closed
Labels
type: documentation A documentation update
Milestone

Comments

@altery
Copy link

altery commented Oct 27, 2022

The Boot Documentation has a section about PropertySource order. The @DynamicPropertySource is missing in this list. According to its JavaDoc, @DynamicPropertySource would be after @TestPropertySource, though it is unclear, if it has higher priority than Devtools global settings.

Dynamic properties have higher precedence than those loaded from @TestPropertySource, the operating system's environment, Java system properties, or property sources added by the application declaratively by using @PropertySource or programmatically. Thus, dynamic properties can be used to selectively override properties loaded via @TestPropertySource, system property sources, and application property sources.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 27, 2022
@wilkinsona wilkinsona changed the title Priority of @DynamicPropertySource is not documented Add @DynamicPropertySource to documented list of property source ordering Oct 27, 2022
@wilkinsona wilkinsona added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 27, 2022
@wilkinsona wilkinsona added this to the 2.6.x milestone Oct 27, 2022
@wilkinsona wilkinsona modified the milestones: 2.6.x, 2.7.x Nov 24, 2022
@wilkinsona wilkinsona modified the milestones: 2.7.x, 2.7.13 Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

3 participants