org.springframework.boot.context.properties

Annotation Type DeprecatedConfigurationProperty



  • @Target(value=METHOD)
     @Retention(value=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 spring-boot-configuration-processor to add deprecation meta-data.

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

    Since:
    1.3.0
    Author:
    Phillip Webb
    • Optional Element Summary

      Optional Elements 
      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).
    • Element Detail

      • reason

        public abstract String reason
        The reason for the deprecation.
        Returns:
        the deprecation reason
        Default:
        ""
      • replacement

        public abstract String replacement
        The field that should be used instead (if any).
        Returns:
        the replacement field
        Default:
        ""

Copyright © 2015 Pivotal Software, Inc.. All rights reserved.