Annotation Interface ConditionalOnProperty


Condition that checks a setting value.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The property name to look up.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Required property value.
    boolean
    Whether to match when the property is missing.
  • Element Details

    • name

      The property name to look up.
      Returns:
      The property name.
    • havingValue

      Required property value.

      When blank, any present value matches.

      Returns:
      The required value.
      Default:
      ""
    • matchIfMissing

      Whether to match when the property is missing.
      Returns:
      true to match missing properties.
      Default:
      false