Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

消费者组设置后启动 报 "重复的消费者" #4

Open
johnnywjh opened this issue Oct 27, 2018 · 1 comment
Open

消费者组设置后启动 报 "重复的消费者" #4

johnnywjh opened this issue Oct 27, 2018 · 1 comment

Comments

@johnnywjh
Copy link

场景 : 我写了一个demo , 最开始就一个 消费者 , 测试没问题, 注解上有写 consumerGroup 和 tag
改动 : 然后我复制了这个类,改了写类名, 然后改了下 consumerGroup
效果 : 启动报错 : Caused by: java.lang.IllegalArgumentException: 重复的消费者

这个是为什么啊? 消费者不应该是监听同样的 topic 和 tag 么?

@johnnywjh
Copy link
Author

追加问题 : 那这个 消费者组 @RocketMQListener(topic = topic1, consumerGroup = "my-consumer_test-topic-1") 应该怎么用呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant