{ "Nacos": { "EndPoint": "", "ServerAddresses": [ "http://localhost:8848/" ], // nacos服务端地址 "DefaultTimeOut": 15000, "Namespace": "dev", // 服务注册到的命名空间id "ListenInterval": 1000, "ServiceName": "tnb-core", //服务名称 "GroupName": "DEFAULT_GROUP", //服务分组 "ClusterName": "DEFAULT", "Ip": "", "PreferredNetworks": "", // select an IP that matches the prefix as the service registration IP "Port": 9212, "Weight": 100, // 权重 "RegisterEnabled": true, "InstanceEnabled": true, "Ephemeral": true, "Secure": false, "AccessKey": "", "SecretKey": "", "UserName": "nacos", "Password": "nacos", "ConfigUseRpc": true, // 为true时,通过 gRPC 去和 nacos server 交互,nacos 2.x版本要设置为true": null, "NamingUseRpc": true, // 为true时,通过 gRPC 去和 nacos server 交互, nacos 2.x版本要设置为true": null, "NamingLoadCacheAtStart": "", "LBStrategy": "WeightRandom", // WeightRandom WeightRoundRobin "Metadata": {} } }