Provide the matched PathPattern as a request attribute in MVC
Author: wilkinsonaCreated Sep 11, 2026Updated Sep 11, 2026
Labelsin: webtype: enhancement
On the WebMvc side, the PathPattern's pattern string is made available as a request attribute:
On the WebFlux side, the PathPattern itself is available:
Could a new attribute be introduced on the MVC side that exposes the PathPattern?
If we had the PathPattern on the MVC side, I think we could rework this WebMvc-based code in Boot to match more closely to its WebFlux-based equivalent.
Source: spring-projects/spring-framework