最新の安定バージョンについては、spring-cloud-stream 4.2.1 を使用してください。 |
使用方法
Apache Kafka バインダーを使用するには、次の Maven の例に示すように、spring-cloud-stream-binder-kafka
を Spring Cloud Stream アプリケーションへの依存関係として追加する必要があります。
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
</dependency>
または、次の Maven の例に示すように、Spring Cloud Stream Kafka スターターを使用することもできます。
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-kafka</artifactId>
</dependency>