Skip to content

Add @DynamicPropertySource to documented list of property source ordering #32901

@altery

Description

@altery

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions