Skip to content

SpringApplication.setEnvironmentPrefix is ignored when reading SPRING_PROFILES_ACTIVE #45387

Closed
@philwebb

Description

@philwebb

See #45370 (comment) for a reproducer.

A bit of analysis shows that this line in ConfigDataEnvironmentContributor is creating the source, but unlike SpringConfigurationPropertySources.adapt it is not respecting the prefix.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions