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

后端 未结 5 2171
谎友^
谎友^ 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:12

    Can you use ResourceConfig#getResources on your ResourceConfig object then get the info you need by iterating through the Set it returns?

    Apologies, would try it, but I don't have the Resources to do it right now. :-p

提交回复
热议问题