Environment.
May be implemented directly or, more usually, created using the
of(. factory method.
Environment#acceptsProfiles(Profiles), Environment#matchesProfiles(String...)
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public static Profiles |
| matches | back to summary |
|---|---|
| public boolean matches(Predicate<String> isProfileActive) Test if this | |
| of | back to summary |
|---|---|
| public static Profiles of(String... profileExpressions) Create a new The returned instance will match if any one of the given profile expressions matches. A profile expression may contain a simple profile name (for example
The following operators are supported in profile expressions.
Please note that the As of Spring Framework 5.1.17, two | |