topfans/backend/services/userService/configs/dubbo.yaml
2026-04-07 22:29:48 +08:00

28 lines
751 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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