Annotation Type EnableConfigurationBeanBinding


@Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Import(ConfigurationBeanBindingRegistrar.class) public @interface EnableConfigurationBeanBinding
Enables Spring's annotation-driven configuration bean from properties.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name prefix of the properties that are valid to bind to the type of configuration.
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    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
    Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.
    boolean
    It indicates whether prefix() binding to multiple Spring Beans.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    The default value for ignoreInvalidFields()
    static final boolean
    The default value for ignoreUnknownFields()
    static final boolean
    The default value for multiple()
  • Field Details

  • Element Details

    • prefix

      String prefix
      The name prefix of the properties that are valid to bind to the type of configuration.
      Returns:
      the name prefix of the properties to bind
    • type

      Class<?> type
      Returns:
      The binding type of configuration.
    • multiple

      boolean multiple
      It indicates whether prefix() binding to multiple Spring Beans.
      Returns:
      the default value is false
      See Also:
      Default:
      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.

      Returns:
      the default value is true
      See Also:
      Default:
      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".

      Returns:
      the default value is true
      See Also:
      Default:
      true