code: public void setResourceLoader(ResourceLoader resourceLoader) {
          this.resourcePatternResolver = ResourcePatternUtils
                  .getResourcePatternResolver(resourceLoader);
          this.metadataReaderFactory = new CachingMetadataReaderFactory(resourceLoader);
      }
docs: Set the ResourceLoader to use for resource locations. This will
  typically be a ResourcePatternResolver implementation.
  <p>
  Default is PathMatchingResourcePatternResolver, also capable of
  resource pattern resolving through the ResourcePatternResolver
  interface.
  
  @see org.springframework.core.io.support.ResourcePatternResolver
  @see org.springframework.core.io.support.PathMatchingResourcePatternResolver