Skip to content

Provide an API for introspection of handler mappings [SPR-15934] #20488

@spring-projects-issues

Description

@spring-projects-issues

Andy Wilkinson opened SPR-15934 and commented

Spring Boot provides an Actuator endpoint that aims to list all Spring MVC (or WebFlux) mappings. It's current implementation is rather haphazard in terms of what it does and does not list, and the format in which mappings are listed. Please see some of the comments and concerns raised in spring-projects/spring-boot#9979 for more details.

Would it be possible for Spring MVC and WebFlux to provide a supported API for introspecting DispatcherServlet and DispatcherHandler handler mappings respectively? I think Boot's current implementation could, in some ways, be improved by reflectively accessing DispatcherServlet.handlerMappings and burrowing down from there but that would still be something of a hack.


Affects: 5.0 RC3

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

Issue Links:

Referenced from: commits 41b53de, 9ff4c0b, 819ca0d, c28a635

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions