Skip to content

The @ActiveProfiles annotation no longer overrides those defined in property files #21302

Closed
@izeye

Description

@izeye

@ActiveProfiles replaces profiles from SPRING_PROFILES_ACTIVE environment variable with its value in 2.3.0.M4, but it appends its value to profiles from the environment variable in 2.3.0.RC1.

I'm not sure if this is an intentional change or more appropriate, but I'm sharing this as I didn't see any explicit mention from its release notes or issue assigned to its milestone.

This can be produced with ActiveProfilesTests from this sample.

If the following environment variable is defined, the test will pass with 2.3.0.M4, but it will fail with 2.3.0.RC1:

export SPRING_PROFILES_ACTIVE=local

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions