Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate use of PathMatcher in web modules #34018

Closed
rstoyanchev opened this issue Dec 4, 2024 · 0 comments
Closed

Deprecate use of PathMatcher in web modules #34018

rstoyanchev opened this issue Dec 4, 2024 · 0 comments
Assignees
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

Comments

@rstoyanchev
Copy link
Contributor

rstoyanchev commented Dec 4, 2024

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.

@rstoyanchev rstoyanchev added in: messaging Issues in messaging modules (jms, messaging) in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Dec 4, 2024
@rstoyanchev rstoyanchev added this to the 7.0.0-M1 milestone Dec 4, 2024
@rstoyanchev rstoyanchev self-assigned this Dec 4, 2024
@rstoyanchev rstoyanchev changed the title Deprecate use of PathMatcher for handler mapping Deprecate use of PathMatcher in web modules Dec 4, 2024
@rstoyanchev rstoyanchev added type: task A general task and removed type: enhancement A general enhancement labels Dec 4, 2024
@snicoll snicoll added type: enhancement A general enhancement and removed type: task A general task labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants