The /mappings endpoint is a Spring Boot Actuator endpoint that lists how HTTP requests are mapped to controllers and other handlers. section 15.2.2
Inspecting mappings from the running application
Request the endpoint with curl and format the JSON with jq: `curl localhost:8080/actuator/mappings | jq`. The response groups mappings by application context and dispatcher handler. section 15.2.2
Listing 15.2 HTTP mappings as shown by the /mappings endpoint
$ curl localhost:8080/actuator/mappings | jq
{
"contexts": {
"application-1": {
"mappings": {
"dispatcherHandlers": {
"webHandler": [
...
{
"predicate": "{[/ingredients],methods=[GET]}",
"handler": "public reactor.core.publisher.Flux<tacos.ingredients.Ingredient> tacos.ingredients.IngredientsController.allIngredients()",
"details": {
"handlerMethod": {
"className": "tacos.ingredients.IngredientsController",
"name": "allIngredients",
"descriptor": "()Lreactor/core/publisher/Flux;"
},
"handlerFunction": null,
"requestMappingConditions": {
"consumes": [],
"headers": [],
"methods": [
"GET"
],
"params": [],
"patterns": [
"/ingredients"
],
"produces": []
}
}
},
...
]
}
},
"parentId": "application-1"
},
"bootstrap": {
"mappings": {
"dispatcherHandlers": {}
},
"parentId": null
}
}
}
Browse a representative response showing a GET mapping for `/ingredients`, its handler method, controller class, and request-mapping conditions. section 15.2.2
