Info (info)
info 端点提供有关应用程序的一般信息。
检索 Info
要检索应用程序的信息,请发送 GET 请求到 /actuator/info,如下基于 curl 的示例所示:
curl 'http://localhost:8080/actuator/info' -i -X GET
得到的响应类似于以下内容:
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 231
{
"git" : {
"branch" : "main",
"commit" : {
"id" : "df027cf",
"time" : "2024-08-22T16:50:11Z"
}
},
"build" : {
"artifact" : "application",
"version" : "1.0.3",
"group" : "com.example"
}
}