springboot 监听kafka消息多个topic 走配置文件
@KafkaListener(topics = "#{'${kafkaTopicName}'.split(',')}")
public void listeninstances(ConsumerRecord<?, ?> record){
logger.info("----------------- record =" + record);
Optional<?> kafkaMessage = Optional.ofNullable(record
原创
2020-08-10 10:09:37 ·
4948 阅读 ·
0 评论