| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- spring:
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: 10.10.10.230:8848
- # 命名空间
- namespace: sckw-service-platform-dev
- # 共享配置
- group: sckw-service-platform
- config:
- # 配置中心地址
- server-addr: 10.10.10.230:8848
- # 配置文件格式
- file-extension: yaml
- # 命名空间
- namespace: sckw-service-platform-dev
- # 共享配置
- group: sckw-service-platform
- function:
- definition: sckwSms;sckwMessage
- stream:
- binders:
- defaultRabbit:
- type: rabbit
- environment:
- spring:
- rabbitmq:
- virtual-host: /
- host: 10.10.10.230
- port: 5672
- username: sckw
- password: Yy123...
- bindings:
- sckwSms-in-0:
- destination: sckw-sms
- content-type: application/json
- binder: defaultRabbit
- group: sckw
- sckwSms-out-0:
- destination: sckw-sms
- content-type: application/json
- default-binder: defaultRabbit
- group: sckw
- sckwMessage-in-0:
- destination: sckw-message
- content-type: application/json
- binder: defaultRabbit
- group: sckw
- sckwMessage-out-0:
- destination: sckw-message
- content-type: application/json
- binder: defaultRabbit
- group: sckw
- rabbitmq:
- username: sckw
- password: Yy123...
- host: 10.10.10.230
- port: 5672
- virtual-host: /
- data:
- mongodb:
- uri: mongodb://sckw:Yy123...@10.10.10.230:27017/sckw?authSource=admin&authMechanism=SCRAM-SHA-1
- # dubbo
- dubbo:
- application:
- # 此处没有延用spring.application.name是因为当前项目本身也会注册到nacos中,如果dubbo也延用相同的名称,在nacos服务里会看到注册的producer-server服务数为2
- name: example-dubbo-server
- protocol:
- name: dubbo
- port: -1
- registry:
- # 配置dubbo的注册中心为nacos
- address: nacos://${spring.cloud.nacos.discovery.server-addr}
- group: ${spring.cloud.nacos.config.group}
- protocol: nacos
- #use-as-config-center: false
- #use-as-metadata-center: false
|