Juergen Hoeller opened SPR-14202 and commented
PathMatchingResourcePatternResolver calls Resource.getURL() on root resources several times. For ClassPathResource, this leads to re-resolution of ClassLoader.getResource which can be expensive. Initially resolving each root resource into a UrlResource, like we do for Equinox bundles already, should help here.
Referenced from: commits 65a8f5e