Annotation Type 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.- Since:
- 1.1.0
Required Element Summary
Required Elements Modifier and Type Required Element Description ConditionalOnJava.JavaVersionvalueTheConditionalOnJava.JavaVersionto check for.
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ConditionalOnJava.RangerangeConfigures whether the value configured invalue()shall be considered the upper exclusive or lower inclusive boundary.
Element Detail
value
ConditionalOnJava.JavaVersion value
TheConditionalOnJava.JavaVersionto check for. Userange()to specify whether the configured value is an upper-exclusive or lower-inclusive boundary.- Returns:
- the java version
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.- Returns:
- the range
- Default:
- org.springframework.boot.autoconfigure.condition.ConditionalOnJava.Range.EQUAL_OR_NEWER