アプリケーションの起動 (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.0.3",
  "timeline" : {
    "events" : [ {
      "duration" : "PT0.000005639S",
      "endTime" : "2026-02-19T12:19:32.067296434Z",
      "startTime" : "2026-02-19T12:19:32.067290795Z",
      "startupStep" : {
        "id" : 3,
        "name" : "spring.beans.instantiate",
        "parentId" : 2,
        "tags" : [ {
          "key" : "beanName",
          "value" : "homeController"
        } ]
      }
    }, {
      "duration" : "PT0.000040481S",
      "endTime" : "2026-02-19T12:19:32.067301882Z",
      "startTime" : "2026-02-19T12:19:32.067261401Z",
      "startupStep" : {
        "id" : 2,
        "name" : "spring.boot.application.starting",
        "tags" : [ {
          "key" : "mainApplicationClass",
          "value" : "com.example.startup.StartupApplication"
        } ]
      }
    } ],
    "startTime" : "2026-02-19T12:19:31.722146674Z"
  }
}

アプリケーションの起動手順の実行

アプリケーションの起動フェーズ中にこれまでに記録されたステップを排出して返すには、次の 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.0.3",
  "timeline" : {
    "events" : [ {
      "duration" : "PT0.000207934S",
      "endTime" : "2026-02-19T12:19:31.995103920Z",
      "startTime" : "2026-02-19T12:19:31.994895986Z",
      "startupStep" : {
        "id" : 1,
        "name" : "spring.beans.instantiate",
        "parentId" : 0,
        "tags" : [ {
          "key" : "beanName",
          "value" : "homeController"
        } ]
      }
    }, {
      "duration" : "PT0.00113144S",
      "endTime" : "2026-02-19T12:19:31.995127035Z",
      "startTime" : "2026-02-19T12:19:31.993995595Z",
      "startupStep" : {
        "id" : 0,
        "name" : "spring.boot.application.starting",
        "tags" : [ {
          "key" : "mainApplicationClass",
          "value" : "com.example.startup.StartupApplication"
        } ]
      }
    } ],
    "startTime" : "2026-02-19T12:19:31.722146674Z"
  }
}

レスポンス構造

レスポンスには、アプリケーションの起動手順の詳細が含まれます。次の表は、レスポンスの構造を示しています。

パス タイプ 説明

springBootVersion

String

このアプリケーションの Spring Boot バージョン。

timeline.startTime

String

アプリケーションの開始時刻。

timeline.events

Array

アプリケーションの起動中にこれまでに収集されたステップの配列。

timeline.events.[].startTime

String

このイベントの開始時のタイムスタンプ。

timeline.events.[].endTime

String

このイベントの終了のタイムスタンプ。

timeline.events.[].duration

String

このイベントの正確な期間。

timeline.events.[].startupStep.name

String

StartupStep の名前。

timeline.events.[].startupStep.id

Number

この StartupStep の ID。

timeline.events.[].startupStep.parentId

Number

この StartupStep の親 ID。

timeline.events.[].startupStep.tags

Array

追加のステップ情報を含むキーと値のペアの配列。

timeline.events.[].startupStep.tags[].key

String

StartupStep タグのキー。

timeline.events.[].startupStep.tags[].value

String

StartupStep タグの値。