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(如果有)。 |