File tree 2 files changed +8
-8
lines changed
labx-20-sca-bus-rocketmq-demo-listener/src/main/resources
labx-20-sca-bus-rocketmq-demo-publisher/src/main/resources
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
application :
3
3
name : listener-demo
4
4
5
- # rocketmq 配置项,对应 RocketMQProperties 配置类
6
- rocketmq :
7
- name-server : 127.0.0.1:9876 # RocketMQ Namesrv
8
-
9
5
server :
10
6
port : ${random.int[10000,19999]} # 随机端口,方便启动多个消费者
7
+
8
+ # rocketmq 配置项,对应 RocketMQProperties 配置类
9
+ rocketmq :
10
+ name-server : 127.0.0.1:9876 # RocketMQ Namesrv
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ spring:
5
5
application :
6
6
name : publisher-demo
7
7
8
- # Kafka 配置项,对应 KafkaProperties 配置类
9
- rocketmq :
10
- bootstrap-servers : 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔
11
-
12
8
# Bus 相关配置项,对应 BusProperties
13
9
cloud :
14
10
bus :
15
11
enabled : true # 是否开启,默认为 true
16
12
destination : springCloudBus # 目标消息队列,默认为 springCloudBus
13
+
14
+ # rocketmq 配置项,对应 RocketMQProperties 配置类
15
+ rocketmq :
16
+ name-server : 127.0.0.1:9876 # RocketMQ Namesrv
You can’t perform that action at this time.
0 commit comments