Document the semantic of using multiple profile expressions

This commit clarifies the semantic of declaring multiple profile
expression with the "spring.config.activate.on-profile" property.

See gh-44866

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou
2025-03-25 11:18:47 +08:00
committed by Stéphane Nicoll
parent 8404736630
commit 6eae09ba68
2 changed files with 15 additions and 2 deletions

View File

@@ -545,7 +545,9 @@ The following activation properties are available:
| Property | Note
| `on-profile`
| A profile expression that must match for the document to be active.
| A profile expression that must match for the document to be active,
or a list of profile expressions of which at least one must match for the document to be active.
Please note comma-separated list such as `foo,bar` is equal to `foo\|bar` instead of `foo&bar`.
| `on-cloud-platform`
| The javadoc:org.springframework.boot.cloud.CloudPlatform[] that must be detected for the document to be active.