When the event ApplicationEnvironmentPreparedEvent is emitted while configuring the Environment, not all property sources are correctly ordered :
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.
When the event
ApplicationEnvironmentPreparedEventis emitted while configuring theEnvironment, not all property sources are correctly ordered :Here ApplicationInfoPropertySource should be at the eleventh rank but is is not.
In org.springframework.boot.SpringApplication#prepareEnvironment , property sources are reorderd after the
ApplicationEnvironmentPreparedEventis 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.