|
该版本仍在开发中,尚未被视为稳定。对于最新稳定版本,请使用 spring-cloud-stream 5.0.0! |
用法
使用 Kafka Streams 绑定器时,只需使用以下 maven 坐标将其添加到你的 Spring Cloud Stream 应用中:
<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”,如下所示