This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 3.3.2! |
Application Startup (startup
)
The startup
endpoint provides information about the application’s startup sequence.
Retrieving the Application Startup Steps
The application startup steps can either be retrieved as a snapshot (GET
) or drained from the buffer (POST
).
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:
$ curl 'http://localhost:8080/actuator/startup' -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: 892
{
"springBootVersion" : "3.4.0-M1",
"timeline" : {
"startTime" : "2024-07-18T19:05:56.567372053Z",
"events" : [ {
"endTime" : "2024-07-18T19:05:56.989955238Z",
"duration" : "PT0.000006192S",
"startTime" : "2024-07-18T19:05:56.989949046Z",
"startupStep" : {
"name" : "spring.beans.instantiate",
"id" : 3,
"tags" : [ {
"key" : "beanName",
"value" : "homeController"
} ],
"parentId" : 2
}
}, {
"endTime" : "2024-07-18T19:05:56.989963183Z",
"duration" : "PT0.000021731S",
"startTime" : "2024-07-18T19:05:56.989941452Z",
"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:
$ curl 'http://localhost:8080/actuator/startup' -i -X POST
The resulting response is similar to the following:
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 891
{
"springBootVersion" : "3.4.0-M1",
"timeline" : {
"startTime" : "2024-07-18T19:05:56.567372053Z",
"events" : [ {
"endTime" : "2024-07-18T19:05:56.910497987Z",
"duration" : "PT0.000239589S",
"startTime" : "2024-07-18T19:05:56.910258398Z",
"startupStep" : {
"name" : "spring.beans.instantiate",
"id" : 1,
"tags" : [ {
"key" : "beanName",
"value" : "homeController"
} ],
"parentId" : 0
}
}, {
"endTime" : "2024-07-18T19:05:56.910524797Z",
"duration" : "PT0.00115848S",
"startTime" : "2024-07-18T19:05:56.909366317Z",
"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:
Path | Type | Description |
---|---|---|
|
|
Spring Boot version for this application. |
|
|
Start time of the application. |
|
|
An array of steps collected during application startup so far. |
|
|
The timestamp of the start of this event. |
|
|
The timestamp of the end of this event. |
|
|
The precise duration of this event. |
|
|
The name of the StartupStep. |
|
|
The id of this StartupStep. |
|
|
The parent id for this StartupStep. |
|
|
An array of key/value pairs with additional step info. |
|
|
The key of the StartupStep Tag. |
|
|
The value of the StartupStep Tag. |