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