Skip to content

Support AND operator in yml profile matching #12469

@twicksell

Description

@twicksell

Similar to https://jira.spring.io/browse/SPR-12458, we would like ability for the yaml profile matching to follow AND semantics instead of OR.

To disambiguate from the current behavior and not create a behavior change, it may be helpful to introduce a new name. Something like:

---
spring.allProfiles: profile1, profile2  #would like these applied only when both profiles are set
someProp: someValue

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions