注释类型 EnableConfigurationBeanBinding

    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      java.lang.String prefix
      The name prefix of the properties that are valid to bind to the type of configuration.
      java.lang.Class<?> type  
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      boolean ignoreInvalidFields
      Set whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).
      boolean ignoreUnknownFields
      Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.
      boolean multiple
      It indicates whether prefix() binding to multiple Spring Beans.
    • 字段详细资料

      • DEFAULT_MULTIPLE

        static final boolean DEFAULT_MULTIPLE
        The default value for multiple()
        从以下版本开始:
        1.0.0
      • DEFAULT_IGNORE_UNKNOWN_FIELDS

        static final boolean DEFAULT_IGNORE_UNKNOWN_FIELDS
        The default value for ignoreUnknownFields()
        从以下版本开始:
        1.0.0
      • DEFAULT_IGNORE_INVALID_FIELDS

        static final boolean DEFAULT_IGNORE_INVALID_FIELDS
        The default value for ignoreInvalidFields()
        从以下版本开始:
        1.0.0
    • 元素详细资料

      • prefix

        java.lang.String prefix
        The name prefix of the properties that are valid to bind to the type of configuration.
        返回:
        the name prefix of the properties to bind
      • type

        java.lang.Class<?> type
        返回:
        The binding type of configuration.
      • multiple

        boolean multiple
        It indicates whether prefix() binding to multiple Spring Beans.
        返回:
        the default value is false
        另请参阅:
        DEFAULT_MULTIPLE
        默认值:
        false
      • ignoreUnknownFields

        boolean ignoreUnknownFields
        Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.

        Default is "true". Turn this off to enforce that all bind parameters must have a matching field in the target object.

        返回:
        the default value is true
        另请参阅:
        DEFAULT_IGNORE_UNKNOWN_FIELDS
        默认值:
        true
      • ignoreInvalidFields

        boolean ignoreInvalidFields
        Set whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).

        Default is "true".

        返回:
        the default value is true
        另请参阅:
        DEFAULT_IGNORE_INVALID_FIELDS
        默认值:
        true