Annotation Type ConditionalOnMissingProperty


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(com.azure.spring.cloud.autoconfigure.condition.OnMissingPropertyCondition.class) public @interface ConditionalOnMissingProperty
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the properties to test.
    A prefix that should be applied to each property.
    Alias for name().
  • Element Details

    • value

      String[] value
      Alias for name().
      Returns:
      the names
      Default:
      {}
    • prefix

      String prefix
      A prefix that should be applied to each property. The prefix automatically ends with a dot if not specified. A valid prefix is defined by one or more words separated with dots (e.g. "spring.cloud.azure").
      Returns:
      the prefix
      Default:
      ""
    • name

      String[] name
      The name of the properties to test. If a prefix has been defined, it is applied to compute the full key of each property. For instance if the prefix is "spring.cloud.azure" and one value is "my-value", the full key would be "spring.cloud.azure.my-value"

      Use the dashed notation to specify each property, that is all lower case with a "-" to separate words (e.g. "my-long-property").

      Returns:
      the names
      Default:
      {}