注释类型 ConfigurationProperties

    • 可选元素概要

      可选元素 
      修饰符和类型可选元素说明
      booleanexceptionIfInvalid
      已过时。
      as of 1.5 since validation only kicks in when @Validated is present
      booleanignoreInvalidFields
      Flag to indicate that when binding to this object invalid fields should be ignored.
      booleanignoreNestedProperties
      Flag to indicate that when binding to this object fields with periods in their names should be ignored.
      booleanignoreUnknownFields
      Flag to indicate that when binding to this object unknown fields should be ignored.
      Stringprefix
      The name prefix of the properties that are valid to bind to this object.
      Stringvalue
      The name prefix of the properties that are valid to bind to this object.
    • 元素详细资料

      • value

        @AliasFor("prefix")
        String value
        The name prefix of the properties that are valid to bind to this object. Synonym for prefix().
        返回:
        the name prefix of the properties to bind
        默认值:
        ""
      • prefix

        @AliasFor("value")
        String prefix
        The name prefix of the properties that are valid to bind to this object. Synonym for value().
        返回:
        the name prefix of the properties to bind
        默认值:
        ""
      • ignoreInvalidFields

        boolean ignoreInvalidFields
        Flag to indicate that when binding to this object invalid fields should be ignored. Invalid means invalid according to the binder that is used, and usually this means fields of the wrong type (or that cannot be coerced into the correct type).
        返回:
        the flag value (default false)
        默认值:
        false
      • ignoreNestedProperties

        boolean ignoreNestedProperties
        Flag to indicate that when binding to this object fields with periods in their names should be ignored.
        返回:
        the flag value (default false)
        默认值:
        false
      • ignoreUnknownFields

        boolean ignoreUnknownFields
        Flag to indicate that when binding to this object unknown fields should be ignored. An unknown field could be a sign of a mistake in the Properties.
        返回:
        the flag value (default true)
        默认值:
        true
      • exceptionIfInvalid

        @Deprecated
        boolean exceptionIfInvalid
        已过时。
        as of 1.5 since validation only kicks in when @Validated is present
        Flag to indicate that an exception should be raised if a Validator is available, the class is annotated with @Validated and validation fails. If it is set to false, validation errors will be swallowed. They will be logged, but not propagated to the caller.
        返回:
        the flag value (default true)
        默认值:
        true