注释类型 ConditionalOnJava
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(org.springframework.boot.autoconfigure.condition.OnJavaCondition.class) public @interface ConditionalOnJava
Conditionalthat matches based on the JVM version the application is running on.- 从以下版本开始:
- 1.1.0
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 org.springframework.boot.system.JavaVersionvalueTheJavaVersionto check for.
可选元素概要
可选元素 修饰符和类型 可选元素 说明 ConditionalOnJava.RangerangeConfigures whether the value configured invalue()shall be considered the upper exclusive or lower inclusive boundary.
range
ConditionalOnJava.Range range
Configures whether the value configured invalue()shall be considered the upper exclusive or lower inclusive boundary. Defaults toConditionalOnJava.Range.EQUAL_OR_NEWER.- 返回:
- the range
- 默认值:
- org.springframework.boot.autoconfigure.condition.ConditionalOnJava.Range.EQUAL_OR_NEWER