Listing all deployed rest endpoints (spring-boot, jersey)

后端 未结 5 2173
谎友^
谎友^ 2020-11-28 09:02

Is it possible to list all my configured rest-endpoints with spring boot? The actuator lists all existing paths on startup, I want something similar for my custom services,

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 09:22

    What about using RequestMappingHandlerMapping that hold all endpoints information.

    See my answer at How to access all available routes of a REST API from a controller?.

提交回复
热议问题