@Retention(value=RUNTIME)
@Target(value=PARAMETER)
@Documented
public @interface DefaultValue
null
). The value from this
annotation will only be used if the property is not found in the property sources used
by the Binder
. For example, if the property is present in the
Environment
when binding to
@ConfigurationProperties
,
the default value for the property will not be used even if the property value is
empty.
NOTE: This annotation does not support property placeholder resolution and the value must be constant.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
value
The default value of the property.
|