Skip to content

Spring Active Profiles inconsistencies #322

@sstarcher

Description

@sstarcher

On the command line I specify --spring.active.profiles=A
at the top of /application.yml I specify spring.profiles.active: B

Environment.getActiveProfiles() returns A
But yml files that have profile B as active get loaded instead of A.

If I specify new SpringApplicationBuilder().profiles("C") in addition to the above.
Environment.getActiveProfiles() returns A,C
And C is getting loaded. Which would be my expectation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions