dubbo: # 不使用注册中心,使用直连模式(用于测试) # registries: # nacos: # protocol: nacos # address: 127.0.0.1:8848 # namespace: public # timeout: 10s protocols: triple: name: tri port: 20000 # Dubbo服务端口 serializer: protobuf # 使用protobuf序列化 provider: services: UserSocialService: # 服务键名(triple协议会自动识别,不需要Reference()方法) interface: "topfans.user.UserSocialService" # 完整的proto包路径+服务名 protocol-ids: triple # registry-ids: nacos # 不使用注册中心时注释掉 serialization: protobuf logger: level: info format: json