Browse Source

Merge branch '6.2.x'

pull/34429/head
Juergen Hoeller 11 months ago
parent
commit
4d6947d14f
  1. 5
      spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java

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

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

Loading…
Cancel
Save