用法

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

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

快速启动 Kafka Streams Binder 新项目的一种方法是使用 Spring Initializr,然后选择 "Cloud Streams" 和 "Spring for Kafka Streams",如下所示: