File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
spring-core/src/main/java/org/springframework/core/io/support Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3434import java .net .URLConnection ;
3535import java .nio .file .FileSystemNotFoundException ;
3636import java .nio .file .FileSystems ;
37+ import java .nio .file .FileVisitOption ;
3738import java .nio .file .Files ;
3839import java .nio .file .Path ;
3940import java .util .Collections ;
@@ -871,7 +872,7 @@ protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource
871872 .formatted (rootPath .toAbsolutePath (), subPattern ));
872873 }
873874
874- try (Stream <Path > files = Files .walk (rootPath )) {
875+ try (Stream <Path > files = Files .walk (rootPath , FileVisitOption . FOLLOW_LINKS )) {
875876 files .filter (isMatchingFile ).sorted ().map (FileSystemResource ::new ).forEach (result ::add );
876877 }
877878 catch (Exception ex ) {
You can’t perform that action at this time.
0 commit comments