[英]Spring Integration Kafka message-driven-channel-adapter receive message
For spring-integration-kafka version 2.1.0.RELEASE, documentation seems to be outdated 对于spring-integration-kafka版本2.1.0.RELEASE, 文档似乎已过时
The example in the doc is incorrect as it doesn't match the constructor argument for KafkaMessageListenerContainer . 该文档中的示例不正确,因为它与KafkaMessageListenerContainer的构造函数参数不匹配。 Can somebody direct me how to create the bean correctly and corresponding Java code to process the message ? 有人可以指导我如何正确创建bean和相应的Java代码来处理消息吗?
<bean id="container1" class="org.springframework.kafka.listener.KafkaMessageListenerContainer">
<constructor-arg>
<bean class="org.springframework.kafka.core.DefaultKafkaConsumerFactory">
<constructor-arg>
<map>
<entry key="bootstrap.servers" value="localhost:9092" />
</map>
</constructor-arg>
</bean>
</constructor-arg>
<constructor-arg name="topics" value="foo" />
</bean>
Sorry about that; 对于那个很抱歉; we'll fix the docs; 我们将修复文档; the correct documentation is in the quick start section . 正确的文档位于“ 快速入门”部分 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.