Info (info)

The info endpoint provides general information about the application.spring-doc.cn

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:spring-doc.cn

$ curl 'http://localhost:8080/actuator/info' -i -X GET

The resulting response is similar to the following:spring-doc.cn

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-21T16:02:45Z"
    }
  },
  "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.spring-doc.cn

Build Response Structure

The following table describe the structure of the build section of the response:spring-doc.cn

Path Type Description

artifactspring-doc.cn

Stringspring-doc.cn

Artifact ID of the application, if any.spring-doc.cn

groupspring-doc.cn

Stringspring-doc.cn

Group ID of the application, if any.spring-doc.cn

namespring-doc.cn

Stringspring-doc.cn

Name of the application, if any.spring-doc.cn

versionspring-doc.cn

Stringspring-doc.cn

Version of the application, if any.spring-doc.cn

timespring-doc.cn

Variesspring-doc.cn

Timestamp of when the application was built, if any.spring-doc.cn

Git Response Structure

The following table describes the structure of the git section of the response:spring-doc.cn

Path Type Description

branchspring-doc.cn

Stringspring-doc.cn

Name of the Git branch, if any.spring-doc.cn

commitspring-doc.cn

Objectspring-doc.cn

Details of the Git commit, if any.spring-doc.cn

commit.timespring-doc.cn

Variesspring-doc.cn

Timestamp of the commit, if any.spring-doc.cn

commit.idspring-doc.cn

Stringspring-doc.cn

ID of the commit, if any.spring-doc.cn

This is the "simple" output. The contributor can also be configured to output all available data.