Actuator REST API
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 规定的偏移日期时间格式。