Usage

要使用 Kafka Streams binder,你只需使用以下 maven 坐标将其添加到你的 Spring Cloud Stream 应用程序中:

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

引导一个新的 Kafka Streams 粘合剂项目的一个快速方法是使用 Spring Initializr,然后选择“Cloud Streams”和“Spring for Kafka Streams”,如下图所示: