批注接口 ConditionalOnJava
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Conditional(org.springframework.boot.autoconfigure.condition.OnJavaCondition.class)
public @interface ConditionalOnJava
@Conditional
that matches based on the JVM version the application
is running on.- 从以下版本开始:
- 1.1.0
- 作者:
- Oliver Gierke, Phillip Webb, Andy Wilkinson
-
嵌套类概要
嵌套类 -
必需元素概要
所需元素 -
可选元素概要
可选元素修饰符和类型可选元素说明Configures whether the value configured invalue()
shall be considered the upper exclusive or lower inclusive boundary.
-
元素详细资料
-
range
ConditionalOnJava.Range rangeConfigures whether the value configured invalue()
shall be considered the upper exclusive or lower inclusive boundary. Defaults toConditionalOnJava.Range.EQUAL_OR_NEWER
.- 返回:
- the range
- 默认值:
EQUAL_OR_NEWER
-
value
JavaVersion valueTheJavaVersion
to check for. Userange()
to specify whether the configured value is an upper-exclusive or lower-inclusive boundary.- 返回:
- the java version
-