集成 spring-cloud-starter-stream-rocketmq 组件
This commit is contained in:
@@ -50,6 +50,49 @@ dubbo:
|
||||
registry:
|
||||
address: spring-cloud://localhost # 设置使用 Spring Cloud 注册中心
|
||||
|
||||
--- #################### MQ 消息队列相关配置 ####################
|
||||
spring:
|
||||
cloud:
|
||||
# Spring Cloud Stream 配置项,对应 BindingServiceProperties 类
|
||||
stream:
|
||||
function:
|
||||
definition: roleRefreshConsumer;menuRefreshConsumer;
|
||||
# Binding 配置项,对应 BindingProperties Map
|
||||
bindings:
|
||||
demo01-output:
|
||||
destination: TEST
|
||||
roleRefreshConsumer-in-0:
|
||||
destination: TEST
|
||||
group: roleRefreshConsumer
|
||||
demo02-output:
|
||||
destination: TEST2
|
||||
menuRefreshConsumer-in-0:
|
||||
destination: TEST2
|
||||
group: menuRefreshConsumer
|
||||
# Spring Cloud Stream RocketMQ 配置项
|
||||
rocketmq:
|
||||
# RocketMQ Binder 配置项,对应 RocketMQBinderConfigurationProperties 类
|
||||
binder:
|
||||
name-server: 127.0.0.1:9876 # RocketMQ Namesrv 地址
|
||||
# RocketMQ 自定义 Binding 配置项,对应 RocketMQBindingProperties Map
|
||||
bindings:
|
||||
demo01-output:
|
||||
# RocketMQ Producer 配置项,对应 RocketMQProducerProperties 类
|
||||
producer:
|
||||
group: test # 生产者分组
|
||||
sync: true # 是否同步发送消息,默认为 false 异步。
|
||||
roleRefreshConsumer-in-0:
|
||||
consumer:
|
||||
message-model: BROADCASTING
|
||||
demo02-output:
|
||||
# RocketMQ Producer 配置项,对应 RocketMQProducerProperties 类
|
||||
producer:
|
||||
group: test # 生产者分组
|
||||
sync: true # 是否同步发送消息,默认为 false 异步。
|
||||
menuRefreshConsumer-in-0:
|
||||
consumer:
|
||||
message-model: BROADCASTING
|
||||
|
||||
--- #################### 芋道相关配置 ####################
|
||||
|
||||
yudao:
|
||||
|
||||
Reference in New Issue
Block a user