Merge branch '6.2.x'

This commit is contained in:
Juergen Hoeller 2025-02-12 19:20:01 +01:00
commit 4d6947d14f
1 changed files with 3 additions and 2 deletions

View File

@ -840,8 +840,9 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol
rootEntryPath = (jarEntry != null ? jarEntry.getName() : "");
closeJarFile = !jarCon.getUseCaches();
}
catch (FileNotFoundException ex) {
// Happens in case of cached root directory without specific subdirectory present.
catch (ZipException | FileNotFoundException ex) {
// Happens in case of a non-jar file or in case of a cached root directory
// without specific subdirectory present, respectively.
return Collections.emptySet();
}
}