用法

要使用 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",如下所示: