@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@Conditional(value=org.springframework.boot.autoconfigure.condition.OnResourceCondition.class)
public @interface ConditionalOnResource
@Conditional
that only matches when the specified resources are on
the classpath.Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
resources
The resources that must be present.
|