@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Conditional(value=org.springframework.boot.autoconfigure.condition.OnJavaCondition.class) public @interface ConditionalOnJava
@Conditional
that matches based on the JVM version the application
is running on.Modifier and Type | Required Element and Description |
---|---|
JavaVersion |
value
The
JavaVersion to check for. |
Modifier and Type | Optional Element and Description |
---|---|
ConditionalOnJava.Range |
range
Configures whether the value configured in
value() shall be considered the
upper exclusive or lower inclusive boundary. |
public abstract JavaVersion value
JavaVersion
to check for. Use range()
to specify whether the
configured value is an upper-exclusive or lower-inclusive boundary.public abstract ConditionalOnJava.Range range
value()
shall be considered the
upper exclusive or lower inclusive boundary. Defaults to
ConditionalOnJava.Range.EQUAL_OR_NEWER
.