This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 3.4.0!spring-doc.cn

Application Startup (startup)

The startup endpoint provides information about the application’s startup sequence.spring-doc.cn

Retrieving the Application Startup Steps

The application startup steps can either be retrieved as a snapshot (GET) or drained from the buffer (POST).spring-doc.cn

Retrieving a snapshot of the Application Startup Steps

To retrieve the steps recorded so far during the application startup phase, make a GET request to /actuator/startup, as shown in the following curl-based example:spring-doc.cn

$ curl 'http://localhost:8080/actuator/startup' -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: 897

{
  "springBootVersion" : "3.3.7-SNAPSHOT",
  "timeline" : {
    "startTime" : "2024-11-27T20:21:11.615502078Z",
    "events" : [ {
      "endTime" : "2024-11-27T20:21:11.985263751Z",
      "duration" : "PT0.00000552S",
      "startTime" : "2024-11-27T20:21:11.985258231Z",
      "startupStep" : {
        "name" : "spring.beans.instantiate",
        "id" : 3,
        "tags" : [ {
          "key" : "beanName",
          "value" : "homeController"
        } ],
        "parentId" : 2
      }
    }, {
      "endTime" : "2024-11-27T20:21:11.985270794Z",
      "duration" : "PT0.000019957S",
      "startTime" : "2024-11-27T20:21:11.985250837Z",
      "startupStep" : {
        "name" : "spring.boot.application.starting",
        "id" : 2,
        "tags" : [ {
          "key" : "mainApplicationClass",
          "value" : "com.example.startup.StartupApplication"
        } ]
      }
    } ]
  }
}

Draining the Application Startup Steps

To drain and return the steps recorded so far during the application startup phase, make a POST request to /actuator/startup, as shown in the following curl-based example:spring-doc.cn

$ curl 'http://localhost:8080/actuator/startup' -i -X POST

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

{
  "springBootVersion" : "3.3.7-SNAPSHOT",
  "timeline" : {
    "startTime" : "2024-11-27T20:21:11.615502078Z",
    "events" : [ {
      "endTime" : "2024-11-27T20:21:11.901288480Z",
      "duration" : "PT0.00021909S",
      "startTime" : "2024-11-27T20:21:11.901069390Z",
      "startupStep" : {
        "name" : "spring.beans.instantiate",
        "id" : 1,
        "tags" : [ {
          "key" : "beanName",
          "value" : "homeController"
        } ],
        "parentId" : 0
      }
    }, {
      "endTime" : "2024-11-27T20:21:11.901320069Z",
      "duration" : "PT0.001075373S",
      "startTime" : "2024-11-27T20:21:11.900244696Z",
      "startupStep" : {
        "name" : "spring.boot.application.starting",
        "id" : 0,
        "tags" : [ {
          "key" : "mainApplicationClass",
          "value" : "com.example.startup.StartupApplication"
        } ]
      }
    } ]
  }
}

Response Structure

The response contains details of the application startup steps. The following table describes the structure of the response:spring-doc.cn

Path Type Description

springBootVersionspring-doc.cn

Stringspring-doc.cn

Spring Boot version for this application.spring-doc.cn

timeline.startTimespring-doc.cn

Stringspring-doc.cn

Start time of the application.spring-doc.cn

timeline.eventsspring-doc.cn

Arrayspring-doc.cn

An array of steps collected during application startup so far.spring-doc.cn

timeline.events.[].startTimespring-doc.cn

Stringspring-doc.cn

The timestamp of the start of this event.spring-doc.cn

timeline.events.[].endTimespring-doc.cn

Stringspring-doc.cn

The timestamp of the end of this event.spring-doc.cn

timeline.events.[].durationspring-doc.cn

Stringspring-doc.cn

The precise duration of this event.spring-doc.cn

timeline.events.[].startupStep.namespring-doc.cn

Stringspring-doc.cn

The name of the StartupStep.spring-doc.cn

timeline.events.[].startupStep.idspring-doc.cn

Numberspring-doc.cn

The id of this StartupStep.spring-doc.cn

timeline.events.[].startupStep.parentIdspring-doc.cn

Numberspring-doc.cn

The parent id for this StartupStep.spring-doc.cn

timeline.events.[].startupStep.tagsspring-doc.cn

Arrayspring-doc.cn

An array of key/value pairs with additional step info.spring-doc.cn

timeline.events.[].startupStep.tags[].keyspring-doc.cn

Stringspring-doc.cn

The key of the StartupStep Tag.spring-doc.cn

timeline.events.[].startupStep.tags[].valuespring-doc.cn

Stringspring-doc.cn

The value of the StartupStep Tag.spring-doc.cn