Liquibase (liquibase)
liquibase 端點提供有關 Liquibase 應用的資料庫變更集的資訊。
檢索變更
要檢索變更,請向 /actuator/liquibase 傳送 GET 請求,如以下基於 curl 的示例所示
$ curl 'https://:8080/actuator/liquibase' -i -X GET
結果響應類似於以下內容
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 712
{
"contexts" : {
"application" : {
"liquibaseBeans" : {
"liquibase" : {
"changeSets" : [ {
"author" : "marceloverdijk",
"changeLog" : "org/springframework/boot/actuate/docs/liquibase/db.changelog-master.yaml",
"checksum" : "9:d3589feb2baad02e15540750499ba311",
"comments" : "",
"contexts" : [ ],
"dateExecuted" : "2025-11-20T16:33:51.213Z",
"deploymentId" : "3656429645",
"description" : "createTable tableName=customer",
"execType" : "EXECUTED",
"id" : "1",
"labels" : [ ],
"orderExecuted" : 1
} ]
}
}
}
}
}
響應結構
響應包含應用程式 Liquibase 變更集的詳細資訊。下表描述了響應的結構
| 路徑 | 型別 | 描述 |
|---|---|---|
|
|
按 ID 鍵控的應用程式上下文 |
|
|
Liquibase bean 建立的變更集,按 bean 名稱鍵控。 |
|
|
變更集的作者。 |
|
|
包含變更集的變更日誌。 |
|
|
對變更集的評論。 |
|
|
變更集的上下文。 |
|
|
變更集執行的時間戳。 |
|
|
執行變更集的部署 ID。 |
|
|
變更集的描述。 |
|
|
變更集的執行型別( |
|
|
變更集的 ID。 |
|
|
與變更集關聯的標籤。 |
|
|
變更集的校驗和。 |
|
|
變更集的執行順序。 |
|
|
與變更集關聯的標籤(如果有)。 |
|
|
父應用程式上下文的 ID(如果有)。 |