Deprecate use of PathMatcher in web modules #34018
Labels
in: messaging
Issues in messaging modules (jms, messaging)
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
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 ofPathMatcher
in web modules.The text was updated successfully, but these errors were encountered: