kiritokun07 commented on issue #395:
URL: https://github.com/apache/rocketmq-spring/issues/395#issuecomment-926446311
消费者也是有的
```
@Component("MyNameServerConsumer")
@RocketMQMessageListener(
topic = "${rocketmq.topic.test}",
consumerGroup = "${rocketmq.consumer.group}"
)
public class MyNameServerConsumer implements RocketMQListener<String> {
@Override
public void onMessage(String s) {
System.out.println("收到消息:s = " + s);
}
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]