Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

SEC-1636: Optimize ant path matching #1876

spring-issuemaster opened this Issue Dec 9, 2010 · 1 comment


None yet
1 participant

Luke Taylor (Migrated from SEC-1636) said:

Currently ant path matching delegates to Spring's AntPathMatcher. Many common cases can be optimized. For example, a trailing wildcard ("**") with no other wildcards could be optimized to a substring match. A wildcard by itself can be optimized to match any path.

Luke Taylor said:

Simple wildcards "/" and "" have been optimized to match all requests. For 3.1, I've also optimized the case of a trailing wildcard (e.g. "/xxx/**) to use a substring match rather than the full AntPathMatcher call. Note that this will still match based on the "directory" as AntPathMatcher would. In other words, both "/xxx" and "/xxx/" would be matched by the given pattern.

@spring-issuemaster spring-issuemaster added this to the 3.1.0.M2 milestone Feb 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment