Skip to content

Support java.nio.file Paths and FileSystems with nested jars #7161

@dsyer

Description

@dsyer

In Spring Boot 1.3.x this code works if "/mydir" is in the parent archive (i.e. src/main/resources in the project that creates the jar):

Resource resource = new ClassPathResource("/mydir"); Paths.get(resource.getURI());

In 1.4.x it throws FileSystemNotFoundException which isn't even an IOException, so it breaks existing apps.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions