Annotation Interface DeprecatedConfigurationProperty


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface DeprecatedConfigurationProperty
Indicates that a getter in a @ConfigurationProperties object is deprecated. This annotation has no bearing on the actual binding processes, but it is used by the configuration-processor to add deprecation meta-data.

This annotation must be used on the getter of the deprecated element.

从以下版本开始:
4.0
作者:
Phillip Webb, Harry Yang
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The reason for the deprecation.
    The field that should be used instead (if any).
  • 元素详细资料

    • reason

      String reason
      The reason for the deprecation.
      返回:
      the deprecation reason
      默认值:
      ""
    • replacement

      String replacement
      The field that should be used instead (if any).
      返回:
      the replacement field
      默认值:
      ""