rpc.yaml 567 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# Dubbo 配置项
dubbo:
  # Spring Cloud Alibaba Dubbo 专属配置
  cloud:
    subscribed-services: 'search-application' # 设置订阅的应用列表,默认为 * 订阅所有应用
  # Dubbo 提供者的协议
  protocol:
    name: dubbo
    port: -1
  # Dubbo 提供服务的扫描基础包
  scan:
    base-packages: cn.iocoder.mall.search.rpc.rpc
  # Dubbo 服务提供者的配置
  provider:
#    filter: -exception
#    ProductSpuService:
#      version: 1.0.0

  # Dubbo 服务消费者的配置
  consumer:
#    ProductSpuService:
#      version: 1.0.0