**[Zhenbang Wei](https://jira.spring.io/secure/ViewProfile.jspa?name=znbang)** opened **[SPR-16832](https://jira.spring.io/browse/SPR-16832?redirect=false)** and commented 1. create a spring boot 2.0 project with web module 2. create a directory src/main/resources/static/hello 3. build a runnable jar and run it 4. open http://localhost:8080/hello 5. an empty file is downloaded instead of 404 This is because AbstractFileResolvingResource.isReadable() always returns true and ClassPathResource doesn't override isReadable(). --- **Affects:** 4.3.17, 5.0.6 **Issue Links:** - #21373 java.nio.file.Path support in FileSystemResource (with regular createRelative behavior, superseding PathResource)