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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The resources that must be present.
  • Element Details

    • resources

      String[] resources
      The resources that must be present.
      Returns:
      the resource paths that must be present.
      Default:
      {}