【发布时间】:2017-05-19 12:06:27
【问题描述】:
我正在尝试使用 Kafka 和 Spring Boot 探索 Spring Integration。我正在关注本教程Spring Integration and Kafka
我正在使用该文档中提供的依赖项,但出现以下异常
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'compression-codec' is not allowed to appear in element 'int-kafka:producer-configuration'.
我认为这是一个 jar 不匹配问题,但我无法解决它,我试图更改很多版本,但组合对我不起作用。请在下面找到我的 gradle 依赖项。
compile('org.springframework.boot:spring-boot-starter-integration')
compile('org.springframework.boot:spring-boot-starter')
compile('org.apache.kafka:kafka_2.10:0.8.1.1')
compile('org.springframework.integration:spring-integration-kafka:2.1.0.RELEASE')
compile('org.springframework.integration:spring-integration-java-dsl:1.1.0.M1')
如果您需要关于此的更多详细信息,请告诉我。
【问题讨论】:
标签: apache-kafka spring-integration spring-kafka