Overview
As can be seen in a modified version of https://github.com/joshlong/spring-boot-3-aot-graphql, attempting to access a resource discovered via classpath scanning within a GraalVM native image -- for example via Files.exists(...) -- currently results in a ClosedFileSystemException since PathMatchingResourcePatternResolver explicitly closes the native image FileSystem that backs resource: resources.
Related Issues
- https://github.com/spring-projects/spring-graphql/issues/495
Deliverables
- [x] Do not close the native image
FileSystemafter classpath scanning inPathMatchingResourcePatternResolver.