File tree 1 file changed +2
-1
lines changed
spring-core/src/main/java/org/springframework/core/io/support
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 34
34
import java .net .URLConnection ;
35
35
import java .nio .file .FileSystemNotFoundException ;
36
36
import java .nio .file .FileSystems ;
37
+ import java .nio .file .FileVisitOption ;
37
38
import java .nio .file .Files ;
38
39
import java .nio .file .Path ;
39
40
import java .util .Collections ;
@@ -871,7 +872,7 @@ protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource
871
872
.formatted (rootPath .toAbsolutePath (), subPattern ));
872
873
}
873
874
874
- try (Stream <Path > files = Files .walk (rootPath )) {
875
+ try (Stream <Path > files = Files .walk (rootPath , FileVisitOption . FOLLOW_LINKS )) {
875
876
files .filter (isMatchingFile ).sorted ().map (FileSystemResource ::new ).forEach (result ::add );
876
877
}
877
878
catch (Exception ex ) {
You can’t perform that action at this time.
0 commit comments