Closed
Description
The documentation states that Default properties (specified by setting SpringApplication.setDefaultProperties
) has the lowest precedence. This happens because the ConfigFileApplicationListener
runs after the defaultProperties
property source has been added to the environment. The listener only adds active profiles from the config files to the environment if none are already present in the environment.