Annotation Interface ConditionalOnJava


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(cn.taketoday.context.condition.OnJavaCondition.class) public @interface ConditionalOnJava
@Conditional that matches based on the JVM version the application is running on.
从以下版本开始:
4.0 2022/4/4 12:22
作者:
Oliver Gierke, Phillip Webb, Andy Wilkinson, Harry Yang
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static enum 
    Range options.
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    cn.taketoday.core.JavaVersion
    The JavaVersion to check for.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    Configures whether the value configured in value() shall be considered the upper exclusive or lower inclusive boundary.
  • 元素详细资料

    • value

      cn.taketoday.core.JavaVersion value
      The JavaVersion to check for. Use range() to specify whether the configured value is an upper-exclusive or lower-inclusive boundary.
      返回:
      the java version