Skip to content

Commit 3041071

Browse files
committed
Consistently apply useCaches for single Resource lookup
Closes gh-35465
1 parent 2da8213 commit 3041071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public Resource[] getResources(String locationPattern) throws IOException {
395395
}
396396
else {
397397
// a single resource with the given name
398-
return new Resource[] {getResourceLoader().getResource(locationPattern)};
398+
return new Resource[] {getResource(locationPattern)};
399399
}
400400
}
401401
}

0 commit comments

Comments
 (0)