For the latest stable version, please use Spring Boot 3.4.0! |
Info (info
)
The info
endpoint provides general information about the application.
Retrieving the Info
To retrieve the information about the application, make a GET
request to /actuator/info
, as shown in the following curl-based example:
$ curl 'http://localhost:8080/actuator/info' -i -X GET
The resulting response is similar to the following:
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-11-21T10:51:53Z"
}
},
"build" : {
"artifact" : "application",
"version" : "1.0.3",
"group" : "com.example"
}
}
Response Structure
The response contains general information about the application.
Each section of the response is contributed by an InfoContributor
.
Spring Boot provides several contributors that are described below.
Build Response Structure
The following table describe the structure of the build
section of the response:
Path | Type | Description |
---|---|---|
|
|
Artifact ID of the application, if any. |
|
|
Group ID of the application, if any. |
|
|
Name of the application, if any. |
|
|
Version of the application, if any. |
|
|
Timestamp of when the application was built, if any. |
Git Response Structure
The following table describes the structure of the git
section of the response:
Path | Type | Description |
---|---|---|
|
|
Name of the Git branch, if any. |
|
|
Details of the Git commit, if any. |
|
|
Timestamp of the commit, if any. |
|
|
ID of the commit, if any. |
This is the "simple" output. The contributor can also be configured to output all available data. |