Update ExtendedPathMatchingResourcePatternResolver to use similar code as the fix for SPR-12095. Fixes gh-1378