此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Boot 3.4.0spring-doc.cn

Spring 集成图 (integrationgraph)

该端点公开了一个包含所有 Spring 集成组件的图。integrationgraphspring-doc.cn

检索 Spring 集成图

要检索有关应用程序的信息,请向 发出请求,如以下基于 curl 的示例所示:GET/actuator/integrationgraphspring-doc.cn

$ curl 'http://localhost:8080/actuator/integrationgraph' -i -X GET

生成的响应类似于以下内容:spring-doc.cn

HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 1033

{
  "contentDescriptor" : {
    "providerVersion" : "6.3.6",
    "providerFormatVersion" : 1.2,
    "provider" : "spring-integration"
  },
  "nodes" : [ {
    "nodeId" : 1,
    "componentType" : "null-channel",
    "integrationPatternType" : "null_channel",
    "integrationPatternCategory" : "messaging_channel",
    "properties" : { },
    "name" : "nullChannel",
    "observed" : false
  }, {
    "nodeId" : 2,
    "componentType" : "publish-subscribe-channel",
    "integrationPatternType" : "publish_subscribe_channel",
    "integrationPatternCategory" : "messaging_channel",
    "properties" : { },
    "name" : "errorChannel",
    "observed" : false
  }, {
    "nodeId" : 3,
    "componentType" : "logging-channel-adapter",
    "integrationPatternType" : "outbound_channel_adapter",
    "integrationPatternCategory" : "messaging_endpoint",
    "properties" : { },
    "input" : "errorChannel",
    "name" : "errorLogger",
    "observed" : false
  } ],
  "links" : [ {
    "from" : 2,
    "to" : 3,
    "type" : "input"
  } ]
}

响应结构

响应包含应用程序中使用的所有 Spring 集成组件,以及它们之间的链接。 有关该结构的更多信息,请参阅参考文档spring-doc.cn

重建 Spring 集成图

要重新构建公开的图形,请向 发出请求,如以下基于 curl 的示例所示:POST/actuator/integrationgraphspring-doc.cn

$ curl 'http://localhost:8080/actuator/integrationgraph' -i -X POST

这将导致响应:204 - No Contentspring-doc.cn

HTTP/1.1 204 No Content