Annotation Interface ConditionalOnMissingProperty
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Conditional(OnMissingPropertyCondition.class)
public @interface ConditionalOnMissingProperty
The
ConditionalOnMissingProperty annotation is a Spring Conditional used to conditionally enable
or disable functionality based on the absence of any declared properties.- Since:
- 1.0.0
- See Also:
-
Conditional
-
Optional Element Summary
Optional Elements
-
Element Details
-
name
Thenamesof the properties to test. If aprefixhas been defined, it is applied to compute the full key of each property. For instance, if theprefixisapp.configand one value ismy-value, the full key would beapp.config.my-value. Use dashed notation to specify each property, that is all lower case with a "-" to separate words (e.g.my-long-property).- Default:
- {}
-
prefix
String prefixAprefixthat should be applied to each property. Theprefixautomatically ends with a dot if not specified. A validprefixis defined by one or more words separated with dots (e.g."acme.system.feature").- Default:
- ""
-
value
Alias forname().- Default:
- {}
-