执行器 REST API

此 API 文档描述了 Spring Boot Actuator 的 Web 端点。spring-doc.cadn.net.cn

在继续之前,您应阅读以下主题:spring-doc.cadn.net.cn

为了获得下面文档中所述的正确 JSON 响应,必须提供 Jackson。

URL

默认情况下,所有 Web 端点都位于路径 /actuator 下,其 URL 格式为 /actuator/{id}/actuator 基础路径可以通过使用 management.endpoints.web.base-path 属性进行配置,如下例所示:spring-doc.cadn.net.cn

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

前面的 application.properties 示例将端点 URL 的形式从 /actuator/{id} 更改为 /manage/{id}。例如,info 端点的 URL 将变为 /manage/infospring-doc.cadn.net.cn

时间戳

所有由端点接收的时间戳(无论是作为查询参数还是在请求体中)都必须按照ISO 8601标准格式化为带时区偏移的日期和时间。spring-doc.cadn.net.cn