|
@@ -15,79 +15,6 @@ spring:
|
|
|
# 重点配置 与 binding 名与消费者对应
|
|
|
definition: delay;demo;log
|
|
|
|
|
|
---- # rabbitmq 配置
|
|
|
-spring:
|
|
|
- rabbitmq:
|
|
|
- host: 117.72.115.2
|
|
|
- port: 15672
|
|
|
- username: orise
|
|
|
- password: 0a1234_tiNo
|
|
|
- cloud:
|
|
|
- stream:
|
|
|
- rabbit:
|
|
|
- bindings:
|
|
|
- delay-in-0:
|
|
|
- consumer:
|
|
|
- delayedExchange: true
|
|
|
- delay-out-0:
|
|
|
- producer:
|
|
|
- delayedExchange: true
|
|
|
- bindings:
|
|
|
- delay-in-0:
|
|
|
- destination: delay.exchange.cloud
|
|
|
- content-type: application/json
|
|
|
- group: delay-group
|
|
|
- binder: rabbit
|
|
|
- delay-out-0:
|
|
|
- destination: delay.exchange.cloud
|
|
|
- content-type: application/json
|
|
|
- group: delay-group
|
|
|
- binder: rabbit
|
|
|
-
|
|
|
---- # rocketmq 配置
|
|
|
-spring:
|
|
|
- cloud:
|
|
|
- stream:
|
|
|
- rocketmq:
|
|
|
- binder:
|
|
|
- # rocketmq 地址
|
|
|
- name-server: 117.72.115.2:19876
|
|
|
- bindings:
|
|
|
- demo-out-0:
|
|
|
- producer:
|
|
|
- # 必须得写
|
|
|
- group: default
|
|
|
- bindings:
|
|
|
- demo-out-0:
|
|
|
- content-type: application/json
|
|
|
- destination: stream-test-topic
|
|
|
- group: test-group
|
|
|
- binder: rocketmq
|
|
|
- demo-in-0:
|
|
|
- content-type: application/json
|
|
|
- destination: stream-test-topic
|
|
|
- group: test-group
|
|
|
- binder: rocketmq
|
|
|
-
|
|
|
---- # kafka 配置
|
|
|
-spring:
|
|
|
- cloud:
|
|
|
- stream:
|
|
|
- kafka:
|
|
|
- binder:
|
|
|
- brokers: 117.72.115.2:15601
|
|
|
- bindings:
|
|
|
- log-out-0:
|
|
|
- destination: stream-log-topic
|
|
|
- contentType: application/json
|
|
|
- group: log_group
|
|
|
- binder: kafka
|
|
|
- log-in-0:
|
|
|
- destination: stream-log-topic
|
|
|
- contentType: application/json
|
|
|
- group: log_group
|
|
|
- binder: kafka
|
|
|
-
|
|
|
--- # nacos 配置
|
|
|
spring:
|
|
|
cloud:
|
|
@@ -107,3 +34,4 @@ spring:
|
|
|
config:
|
|
|
import:
|
|
|
- optional:nacos:application-common.yml
|
|
|
+ - optional:nacos:${spring.application.name}.yml
|