跳到主要内容

使用

DeepSeek V3 中英对照 Usage

要使用 Apache Kafka 绑定器,您需要将 spring-cloud-stream-binder-kafka 添加为 Spring Cloud Stream 应用程序的依赖项,如下面的 Maven 示例所示:

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
</dependency>
xml

或者,你也可以使用 Spring Cloud Stream Kafka Starter,如下面的 Maven 示例所示:

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-kafka</artifactId>
</dependency>
xml