How to Get All Endpoints List After Startup, Spring Boot

前端 未结 5 652
我寻月下人不归
我寻月下人不归 2020-12-05 06:34

I have a rest service written with spring boot. I want to get all endpoints after start up. How can i achieve that? Purpose of this, i want to save all endpoints to a db af

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 07:11

    In the application.properties, we need management.endpoints.web.exposure.include=mappings

    Then we can see all the endpoints at: http://localhost:8080/actuator/mappings

提交回复
热议问题