Skip to content

spring.profiles.include overrides other profiles being activate #25712

@cdprete

Description

@cdprete

Hi.
In my Spring Boot 2.4.3 application I've the following YAML configuration in the application.yml file:

spring.profiles.include: native
spring.profiles.group.default: demo-data,dev

As a result, I now get just the native profile as being activated.
This was not the case with Spring Boot 2.1.2 where I had:

  • in the application.yml file:
spring.profiles.include: native
  • in the application-default.yml file:
spring.profiles.active: demo-data,dev

and, as a result, all of them where activated.

Is there a way to get the old behaviour back?

Metadata

Metadata

Assignees

Labels

status: supersededAn issue that has been superseded by another

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions