Annotation Interface ConditionalOnMissingProperty


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(OnMissingPropertyCondition.class) public @interface ConditionalOnMissingProperty
The ConditionalOnMissingProperty annotation is a Spring Conditional used to conditionally enable or disable functionality based on the absence of any declared properties.
Since:
1.0.0
See Also:
  • Conditional
  • Element Details

    • name

      @AliasFor("value") String[] name
      The names 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 app.config and one value is my-value, the full key would be app.config.my-value. Use dashed notation to specify each property, that is all lower case with a "-" to separate words (e.g. my-long-property).
      Returns:
      the names of the properties to test.
      See Also:
      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. "acme.system.feature").
      Returns:
      the property prefix.
      See Also:
      Default:
      ""
    • value

      @AliasFor("name") String[] value
      Alias for name().
      Returns:
      the names of the properties to test.
      See Also:
      Default:
      {}