用法

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

<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”,如下所示