I'm not sure but I think AntPathMatcher.isPattern("/{bla}.jpg") should return true.
Comment From: bclozel
Doing that change fails the following test, so this raises more question about AntPathMatcher behavior:
org.springframework.core.io.support.ResourceArrayPropertyEditorTests > testSystemPropertyReplacement
Could you create an issue on jira.spring.io for this?
Comment From: soldierkam
Done https://jira.spring.io/browse/SPR-14763
Comment From: bclozel
Fixed with #22959