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.- Since:
- 1.0.0
- Author:
- Dave Syer
-
Optional Element Summary
-
Element Details
-
resources
String[] resourcesThe resources that must be present.- Returns:
- the resource paths that must be present.
- Default:
- {}
-