Liquibase (liquibase)
这liquibaseendpoint 提供有关 Liquibase 应用的数据库变更集的信息。
检索更改
要检索更改,请将GET请求/actuator/liquibase,如以下基于 curl 的示例所示:
$ curl 'http://localhost:8080/actuator/liquibase' -i -X GET生成的响应类似于以下内容:
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 721
{
  "contexts" : {
    "application" : {
      "liquibaseBeans" : {
        "liquibase" : {
          "changeSets" : [ {
            "author" : "marceloverdijk",
            "changeLog" : "org/springframework/boot/actuate/autoconfigure/liquibase/db.changelog-master.yaml",
            "comments" : "",
            "contexts" : [ ],
            "dateExecuted" : "2025-08-21T09:11:41.639Z",
            "deploymentId" : "5767499382",
            "description" : "createTable tableName=customer",
            "execType" : "EXECUTED",
            "id" : "1",
            "labels" : [ ],
            "checksum" : "9:d3589feb2baad02e15540750499ba311",
            "orderExecuted" : 1
          } ]
        }
      }
    }
  }
}响应结构
响应包含应用程序的 Liquibase 更改集的详细信息。 下表描述了响应的结构:
| 路径 | 类型 | 描述 | 
|---|---|---|
| 
 | 
 | 以 id 键入的应用程序上下文 | 
| 
 | 
 | 由 Liquibase bean 创建的更改集,以 bean 名称为键。 | 
| 
 | 
 | 变更集的作者。 | 
| 
 | 
 | 包含更改集的更改日志。 | 
| 
 | 
 | 更改集的注释。 | 
| 
 | 
 | 变更集的上下文。 | 
| 
 | 
 | 执行更改集的时间戳。 | 
| 
 | 
 | 运行更改集的部署的标识。 | 
| 
 | 
 | 变更集的描述。 | 
| 
 | 
 | 变更集的执行类型 ( | 
| 
 | 
 | 更改集的 ID。 | 
| 
 | 
 | 与变更集关联的标签。 | 
| 
 | 
 | 更改集的校验和。 | 
| 
 | 
 | 更改集的执行顺序。 | 
| 
 | 
 | 与变更集关联的标记(如果有)。 | 
| 
 | 
 | 父应用程序上下文的 ID(如果有)。 |