Actuator REST API

本 API 文档描述了 Spring Boot Actuator 的 Web 端点。

在继续之前,建议先阅读以下主题:

若要获得下文所示的正确 JSON 响应,必须引入 Jackson。

URL

默认情况下,所有 Web 端点都位于 /actuator 路径下,URL 形式为 /actuator/{id}。 可通过 management.endpoints.web.base-path 属性进行配置,如下所示:

management.endpoints.web.base-path=/manage

上述 application.properties 示例将端点 URL 形式从 /actuator/{id} 更改为 /manage/{id}。 例如,info 端点的 URL 将变为 /manage/info

时间戳

所有被端点消费的时间戳(无论是作为查询参数还是请求体中的内容),都必须采用 ISO 8601 规定的偏移日期时间格式。