|
此版本仍在开发中,尚未视为稳定版。如需最新稳定版本,请使用 Spring Boot 4.0.4! |
执行器 REST API
URL
默认情况下,所有 Web 端点都位于路径 /actuator 下,其 URL 格式为 /actuator/{id}。/actuator 基础路径可以通过使用 management.endpoints.web.base-path 属性进行配置,如下例所示:
management.endpoints.web.base-path=/manage
前面的 application.properties 示例将端点 URL 的形式从
/actuator/{id} 更改为 /manage/{id}。例如,info 端点的 URL 将变为
/manage/info。
时间戳
所有由端点接收的时间戳(无论是作为查询参数还是在请求体中)都必须按照ISO 8601标准格式化为带时区偏移的日期和时间。