用法
要使用 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>