Skip to content

Expose mapped handler as request attribute in spring-webmvc [SPR-17518] #22050

Closed
@spring-projects-issues

Description

@spring-projects-issues

Johnny Lim opened SPR-17518 and commented

Javadoc for HandlerMapping.getHandler() says it will return null if no mapping found but RequestMappingHandlerMapping.getHandler() throws HttpRequestMethodNotSupportedException instead.

 

There's a sample project to reproduce it in the "Reference URL".


Affects: 4.3.20

Reference URL: spring-projects/spring-boot#15204

Referenced from: commits 736b3c4, a55ca56, abacc6d

Backported to: 5.0.11, 4.3.21

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions