アプリケーションの起動 (startup)
startup エンドポイントは、アプリケーションの起動シーケンスに関する情報を提供します。
アプリケーションの起動手順の取得
アプリケーションの起動ステップは、スナップショットとして取得するか (GET)、バッファから排出する (POST) ことができます。
アプリケーション起動ステップのスナップショットを取得する
アプリケーションの起動フェーズ中にこれまでに記録されたステップを取得するには、次の curl ベースの例に示すように、GET リクエストを /actuator/startup に送信します。
$ curl 'http://localhost:8080/actuator/startup' -i -X GET結果のレスポンスは次のようになります。
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 889
{
"springBootVersion" : "4.1.0",
"timeline" : {
"events" : [ {
"duration" : "PT0.000006111S",
"endTime" : "2026-06-10T16:30:25.192381171Z",
"startTime" : "2026-06-10T16:30:25.192375060Z",
"startupStep" : {
"id" : 3,
"name" : "spring.beans.instantiate",
"parentId" : 2,
"tags" : [ {
"key" : "beanName",
"value" : "homeController"
} ]
}
}, {
"duration" : "PT0.000019807S",
"endTime" : "2026-06-10T16:30:25.192386471Z",
"startTime" : "2026-06-10T16:30:25.192366664Z",
"startupStep" : {
"id" : 2,
"name" : "spring.boot.application.starting",
"tags" : [ {
"key" : "mainApplicationClass",
"value" : "com.example.startup.StartupApplication"
} ]
}
} ],
"startTime" : "2026-06-10T16:30:24.965022372Z"
}
}アプリケーションの起動手順の実行
アプリケーションの起動フェーズ中にこれまでに記録されたステップを排出して返すには、次の curl ベースの例に示すように、POST リクエストを /actuator/startup に作成します。
$ curl 'http://localhost:8080/actuator/startup' -i -X POST結果のレスポンスは次のようになります。
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 888
{
"springBootVersion" : "4.1.0",
"timeline" : {
"events" : [ {
"duration" : "PT0.00019811S",
"endTime" : "2026-06-10T16:30:25.114743680Z",
"startTime" : "2026-06-10T16:30:25.114545570Z",
"startupStep" : {
"id" : 1,
"name" : "spring.beans.instantiate",
"parentId" : 0,
"tags" : [ {
"key" : "beanName",
"value" : "homeController"
} ]
}
}, {
"duration" : "PT0.001111714S",
"endTime" : "2026-06-10T16:30:25.114768075Z",
"startTime" : "2026-06-10T16:30:25.113656361Z",
"startupStep" : {
"id" : 0,
"name" : "spring.boot.application.starting",
"tags" : [ {
"key" : "mainApplicationClass",
"value" : "com.example.startup.StartupApplication"
} ]
}
} ],
"startTime" : "2026-06-10T16:30:24.965022372Z"
}
}レスポンス構造
レスポンスには、アプリケーションの起動手順の詳細が含まれます。次の表は、レスポンスの構造を示しています。
| パス | タイプ | 説明 |
|---|---|---|
|
| このアプリケーションの Spring Boot バージョン。 |
|
| アプリケーションの開始時刻。 |
|
| アプリケーションの起動中にこれまでに収集されたステップの配列。 |
|
| このイベントの開始時のタイムスタンプ。 |
|
| このイベントの終了のタイムスタンプ。 |
|
| このイベントの正確な期間。 |
|
| StartupStep の名前。 |
|
| この StartupStep の ID。 |
|
| この StartupStep の親 ID。 |
|
| 追加のステップ情報を含むキーと値のペアの配列。 |
|
| StartupStep タグのキー。 |
|
| StartupStep タグの値。 |