mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Consistently apply useCaches for single Resource lookup
Closes gh-35465
This commit is contained in:
+1
-1
@@ -395,7 +395,7 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol
|
||||
}
|
||||
else {
|
||||
// a single resource with the given name
|
||||
return new Resource[] {getResourceLoader().getResource(locationPattern)};
|
||||
return new Resource[] {getResource(locationPattern)};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user