Skip to content

Commit

Permalink
rocketmq模块: acl
Browse files Browse the repository at this point in the history
  • Loading branch information
guolanren committed Apr 13, 2020
1 parent 5f46f53 commit 5638634
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class OrderPaidService {
private static final Logger logger = LoggerFactory.getLogger(OrderPaidService.class);

@Service
@RocketMQMessageListener(topic = "my-topic", consumerGroup = "my-topic-group")
@RocketMQMessageListener(topic = "my-topic", consumerGroup = "my-topic-group" /* , accessKey = "AK", secretKey = "SK" */)
public class StringConsumer implements RocketMQListener<String>{
@Override
public void onMessage(String message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
spring.application.name = rocketmq-consumer

rocketmq.name-server = 192.168.124.135:9876;192.168.124.136:9876
rocketmq.name-server = 192.168.124.135:9876;192.168.124.136:9876
rocketmq.consumer.access-key = AK
rocketmq.consumer.secret-key = SK
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
spring.application.name = rocketmq-producer

rocketmq.name-server = 192.168.124.135:9876;192.168.124.136:9876
rocketmq.producer.group = my-group
rocketmq.producer.group = my-group
#rocketmq.producer.access-key = AK
#rocketmq.producer.secret-key = SK

0 comments on commit 5638634

Please sign in to comment.