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