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
-
Element Details
-
name
Thenames
of the properties to test. If aprefix
has been defined, it is applied to compute the full key of each property. For instance, if theprefix
isapp.config
and 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 prefixAprefix
that should be applied to each property. Theprefix
automatically ends with a dot if not specified. A validprefix
is defined by one or more words separated with dots (e.g."acme.system.feature"
).- Default:
- ""
-
value
Alias forname()
.- Default:
- {}
-