@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @Documented @Conditional(value=com.azure.spring.cloud.autoconfigure.condition.OnAnyPropertyCondition.class) public @interface ConditionalOnAnyProperty
| Modifier and Type | Optional Element and Description |
|---|---|
String |
havingValue
The string representation of the expected value for the properties.
|
boolean |
matchIfMissing
Specify if the condition should match if the property is not set.
|
String[] |
name
The name of the properties to test.
|
String |
prefix
A prefix that should be applied to each property.
|
String[] |
value
Alias for
ConditionalOnAnyProperty.name(). |
public abstract String[] value
ConditionalOnAnyProperty.name().public abstract String prefix
"azure.spring.cloud").public abstract String[] name
azure.spring.cloud and one value is my-value, the full key would be
azure.spring.cloud.my-value
Use the dashed notation to specify each property, that is all lower case with a "-"
to separate words (e.g. my-long-property).
public abstract String havingValue
false.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.