跳到主要内容
版本:4.2.0

应用模型

DeepSeek V3 中英对照 Spring Cloud Stream’s application model Application Model

一个 Spring Cloud Stream 应用程序包含一个中间件无关的核心。应用程序通过在外部分发器暴露的目标与代码中的输入/输出参数之间建立绑定来与外界通信。建立绑定所需的中间件特定细节由特定于中间件的 Binder 实现处理。

SCSt with binder

图 1. Spring Cloud Stream 应用程序

胖 JAR​

Spring Cloud Stream 应用程序可以在你的 IDE 中以独立模式运行以进行测试。要在生产环境中运行 Spring Cloud Stream 应用程序,你可以使用为 Maven 或 Gradle 提供的标准 Spring Boot 工具创建一个可执行(或“fat”)JAR。有关更多详细信息,请参阅 Spring Boot 参考指南。