|
该版本仍在开发中,尚未被视为稳定。对于最新稳定版本,请使用 spring-cloud-stream 5.0.0! |
用法
要使用 Apache Kafka 绑定器,你需要添加春-云-溪-绑定-卡夫卡作为对Spring Cloud Stream应用的依赖,如下一个Maven示例所示:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
</dependency>
或者,你也可以使用Spring Cloud Stream KafkaStarters,如下例所示的Maven:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-kafka</artifactId>
</dependency>