dubbo配置文件

一、配置文件组成

dubbo:application 应用信息

dubbo:registry 注册中心

dubbo:monitor 监控中心

dubbo:provider 服务提供者

dubbo:service 暴露服务

dubbo:protocol 协议信息

dubbo:consumer 服务消费者

dubbo:reference 服务引用

dubbo:method 方法

dubbo:agrument 参数

二、配置文件分类

公用配置项

dubbo:application

dubbo:registry

dubbo:monitor

服务提供者配置项

dubbo:provider

dubbo:service

dubbo:protocol

服务消费者配置项

dubbo:consumer

dubbo:reference

暴露服务与服务引用的公用配置

dubbo:method

dubbo:agrument

三、配置文件属性说明

1)应用信息(dubbo:application)

name:应用名称

2)注册中心(dubbo:registry)

id:注册中心id

username:用户名

password:密码

address:注册中心地址

register:是否注册到注册中心

subscribe:是否从注册中心订阅

3)监控中心(monitor)

address:监控中心地址

4)协议(protocol)

name:协议名

port:协议端口

dispatch:消息模型(all、redirect、message、excute、connection)

threadpool:线程模型(fixed、)

5)暴露服务(service)

interface:服务接口

ref:服务接口的实现

cluster:集群容错模式

retries:失败重切次数(集群容错模式为failover)

fork:并行任务数(集群容错模式为forking)

loadbalance:负载均衡策略


  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值