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.