Closed
Description
PathMatcher
has been used broadly in the Spring Framework since version 1.2, in core for Spring config, in web for mapping requests, and in messaging for routing messages.
After a long experience, PathPatternParser
was introduced in Spring Framework 5 designed specifically for the needs of web applications, see #19112. Initially for WebFlux, but later for Spring MVC as well from 5.3. In addition to syntax adjustments, a key benefit is the use of parsed patterns for repeated matching at runtime.
PathPatternParser
has been the default in Spring MVC since 6.0, and in Spring Boot since 2.6. Going forward, we don't intend to keep two competing abstractions for request path matching. In 7.0 we should deprecate use of PathMatcher
in web modules.