跳到主要内容
版本:5.0.1

使用

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>

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

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