@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface DeprecatedConfigurationProperty
ConfigurationProperties
object is deprecated. This
annotation has no bearing on the actual binding processes, but it is used by the
spring-boot-configuration-processor
to add deprecation meta-data.
This annotation must be used on the getter of the deprecated element.
Modifier and Type | Optional Element and Description |
---|---|
String |
reason
The reason for the deprecation.
|
String |
replacement
The field that should be used instead (if any).
|
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.