用法
要使用 Apache Kafka 繫結器,您需要將 spring-cloud-stream-binder-kafka 作為依賴項新增到您的 Spring Cloud Stream 應用程式中,如以下 Maven 示例所示
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
</dependency>
或者,您也可以使用 Spring Cloud Stream Kafka Starter,如以下 Maven 示例所示
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-kafka</artifactId>
</dependency>