For the latest stable version, please use Spring Boot 3.5.0!spring-doc.cn

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: 759

{
  "git" : {
    "branch" : "main",
    "commit" : {
      "id" : "df027cf",
      "time" : "2025-05-22T06:47:04Z"
    }
  },
  "build" : {
    "artifact" : "application",
    "version" : "1.0.3",
    "group" : "com.example"
  },
  "os" : {
    "name" : "Linux",
    "version" : "6.11.0-1014-azure",
    "arch" : "amd64"
  },
  "process" : {
    "pid" : 91681,
    "parentPid" : 88648,
    "owner" : "runner",
    "cpus" : 4
  },
  "java" : {
    "version" : "17.0.15",
    "vendor" : {
      "name" : "BellSoft"
    },
    "runtime" : {
      "name" : "OpenJDK Runtime Environment",
      "version" : "17.0.15+10-LTS"
    },
    "jvm" : {
      "name" : "OpenJDK 64-Bit Server VM",
      "vendor" : "BellSoft",
      "version" : "17.0.15+10-LTS"
    }
  }
}

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.

OS Response Structure

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

Path Type Description

namespring-doc.cn

Stringspring-doc.cn

Name of the operating system (as obtained from the 'os.name' system property).spring-doc.cn

versionspring-doc.cn

Stringspring-doc.cn

Version of the operating system (as obtained from the 'os.version' system property).spring-doc.cn

archspring-doc.cn

Stringspring-doc.cn

Architecture of the operating system (as obtained from the 'os.arch' system property).spring-doc.cn

Process Response Structure

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

Path Type Description

pidspring-doc.cn

Numberspring-doc.cn

Process ID.spring-doc.cn

parentPidspring-doc.cn

Numberspring-doc.cn

Parent Process ID (or -1).spring-doc.cn

ownerspring-doc.cn

Stringspring-doc.cn

Process owner.spring-doc.cn

cpusspring-doc.cn

Numberspring-doc.cn

Number of CPUs available to the process.spring-doc.cn

Java Response Structure

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

Path Type Description

versionspring-doc.cn

Stringspring-doc.cn

Java version, if available.spring-doc.cn

vendorspring-doc.cn

Objectspring-doc.cn

Vendor details.spring-doc.cn

vendor.namespring-doc.cn

Stringspring-doc.cn

Vendor name, if available.spring-doc.cn

vendor.versionspring-doc.cn

Stringspring-doc.cn

Vendor version, if available.spring-doc.cn

runtimespring-doc.cn

Objectspring-doc.cn

Runtime details.spring-doc.cn

runtime.namespring-doc.cn

Stringspring-doc.cn

Runtime name, if available.spring-doc.cn

runtime.versionspring-doc.cn

Stringspring-doc.cn

Runtime version, if available.spring-doc.cn

jvmspring-doc.cn

Objectspring-doc.cn

JVM details.spring-doc.cn

jvm.namespring-doc.cn

Stringspring-doc.cn

JVM name, if available.spring-doc.cn

jvm.vendorspring-doc.cn

Stringspring-doc.cn

JVM vendor, if available.spring-doc.cn

jvm.versionspring-doc.cn

Stringspring-doc.cn

JVM version, if available.spring-doc.cn