Spring批处理与Spring集成kafka

Spring批处理与Spring集成kafka,spring,spring-integration,apache-kafka,spring-batch-admin,Spring,Spring Integration,Apache Kafka,Spring Batch Admin,我正在尝试将spring批处理管理与spring集成kafka集成,以运行消费者。我得到了下面的例外 java.lang.NoClassDefFoundError: org/springframework/integration/MessagingException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)

我正在尝试将spring批处理管理与spring集成kafka集成,以运行消费者。我得到了下面的例外

java.lang.NoClassDefFoundError: org/springframework/integration/MessagingException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getDeclaredMethods(Class.java:1860)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:571)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:490)
据此,。spring-batch-2.0.0版本将支持Kafka集成


到目前为止,在spring中收听kafka consumer的更好方式是什么?

您缺少一个spring集成依赖项。我的pom.xml中有spring集成核心和spring集成kafka依赖项确保版本匹配且兼容。…。@M.Deinum我重新检查了jar版本,一切似乎都是正确的。但根据我在问题中链接的帖子,这些依赖项将在SpringBatch Admin2.0版本中添加。春天没有批次,有没有更好的方式倾听卡夫卡消费者的声音?为什么需要批次部分来倾听?这应该(或是)是Spring集成的一部分。。。你想用Spring批处理管理的东西做什么?此外,在这个问题中还指出,由于框架中的版本不匹配,您必须使用2.0.0.M1早期版本无法工作。您缺少一个spring集成依赖项。我在pom.xml中有spring集成核心和spring集成kafka依赖项。请确保版本匹配且兼容。…。@M.Deinum我有重新检查jar版本,一切似乎都是正确的。但根据我在问题中链接的帖子,这些依赖项将在SpringBatch Admin2.0版本中添加。春天没有批次,有没有更好的方式倾听卡夫卡消费者的声音?为什么需要批次部分来倾听?这应该(或是)是Spring集成的一部分。。。你想用Spring批处理管理的东西做什么?在这个问题中还指出,您必须使用2.0.0.M1早期版本,因为框架中的版本不匹配,所以无法工作。