网上都是消息监听,接口调用时,同一个消费组,无法使用为同一个消费者,所以需要取消订阅。
Properties properties=kafkaConfig.getProperties();
// 将参数设置到消费者参数中
KafkaConsumer<String, String> consumer = new KafkaConsumer(propert
网上都是消息监听,接口调用时,同一个消费组,无法使用为同一个消费者,所以需要取消订阅。
Properties properties=kafkaConfig.getProperties();
// 将参数设置到消费者参数中
KafkaConsumer<String, String> consumer = new KafkaConsumer(propert