spring-cloud-stream-binder-kafka 和 spring-cloud-starter-stream-kafka 之间的区别

abh*_*tia 4 apache-kafka spring-boot spring-kafka

Spring Boot 项目中这些 Maven 依赖项有什么区别 -

spring-cloud-stream-binder-kafkaspring-cloud-starter-stream-kafka

bis*_*ros 6

“spring-cloud-starter-stream-kafka”是一个 spring-boot-starter,用于轻松版本兼容。

从链接中可以看到,https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/blob/v3.0.6.RELEASE/spring-cloud-starter-stream-kafka/pom。 XML

“spring-cloud-starter-stream-kafka”只有“spring-cloud-stream-binder-kafka”依赖信息

所以,如果你使用spring boot,使用 spring-cloud-starter-stream-kafka 更方便