Annotation Type ConditionalOnResource
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(org.springframework.boot.autoconfigure.condition.OnResourceCondition.class) public @interface ConditionalOnResource
Conditional
that only matches when the specified resources are on the classpath.