Annotation Type ConditionalOnExpression


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(org.springframework.boot.autoconfigure.condition.OnExpressionCondition.class) public @interface ConditionalOnExpression
Configuration annotation for a conditional element that depends on the value of a SpEL expression.
Since:
1.0.0
Author:
Dave Syer
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The SpEL expression to evaluate.
  • Element Details

    • value

      String value
      The SpEL expression to evaluate. Expression should return true if the condition passes or false if it fails.
      Returns:
      the SpEL expression
      Default:
      "true"