Skip to content

Document that properties sources may not be correctly ordered #48

Description

@FBibonne

When the event ApplicationEnvironmentPreparedEvent is emitted while configuring the Environment, not all property sources are correctly ordered :

Image

Here ApplicationInfoPropertySource should be at the eleventh rank but is is not.

In org.springframework.boot.SpringApplication#prepareEnvironment , property sources are reorderd after the ApplicationEnvironmentPreparedEvent is emitted so when the library runs, it cannot get the right order.

This only applies to properties managed by ApplicationInfoPropertySource and, where applicable, DefaultPropertiesPropertySource, but this should be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions