You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/09/24 08:30:27 UTC
[GitHub] [rocketmq-spring] kiritokun07 commented on issue #395: 无法发送事务消息 The rocketMQTemplate does not exist TransactionListener
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org