Skip to content

spring.profiles.active from defaultProperties takes precedence over config files #15445

Closed
@mbhave

Description

@mbhave

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions