|
如需获取最新稳定版本,请使用 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}。例如,URL info 端点将变为
/manage/info。
时间戳
所有由端点消费的时间戳,无论是作为查询参数还是在请求体中,都必须按照ISO 8601中规定的带偏移量的日期和时间格式进行格式化。