ruoshuixuelabi opened a new issue #88: Consumer batch messages API. URL: https://github.com/apache/rocketmq-spring/issues/88 请问怎么批量的接收消息,比如按照文档接收消息是这样的 @Slf4j @Service @RocketMQMessageListener(topic = "test-topic-2", consumerGroup = "my-consumer_test-topic-2") public class MyConsumer implements RocketMQListener<OrderPaidEvent> { @Override public void onMessage(OrderPaidEvent orderPaidEvent) { log.info("received orderPaidEvent: {}", orderPaidEvent); } } 我现在想把里面的OrderPaidEvent orderPaidEvent变成List<OrderPaidEvent> orderPaidEvent这样的,我测试了一下这样会报错,原生的是支持批量的,现在我看了一遍源码没有找到批量接收的方法
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
