Class NacosCfgOptions
Nacos 配置选项
public sealed class NacosCfgOptions
- Inheritance
-
NacosCfgOptions
- Inherited Members
Properties
AccessKey
Access Key(可选,用于阿里云 MSE)
public string? AccessKey { get; set; }
Property Value
ConnectTimeoutMs
连接超时时间(毫秒),默认 10000
public int ConnectTimeoutMs { get; set; }
Property Value
DataFormat
配置数据格式,默认 Json
public NacosDataFormat DataFormat { get; set; }
Property Value
DataId
配置的 DataId
public string DataId { get; set; }
Property Value
EnableHotReload
是否启用热重载,默认 false
public bool EnableHotReload { get; set; }
Property Value
Group
配置分组,默认 "DEFAULT_GROUP"
public string Group { get; set; }
Property Value
Namespace
命名空间 ID,默认 "public"
public string Namespace { get; set; }
Property Value
Password
密码(可选)
public string? Password { get; set; }
Property Value
ReconnectIntervalMs
重连间隔(毫秒),默认 5000
public int ReconnectIntervalMs { get; set; }
Property Value
SecretKey
Secret Key(可选,用于阿里云 MSE)
public string? SecretKey { get; set; }
Property Value
ServerAddresses
Nacos 服务地址列表,多个地址用逗号分隔,默认 "localhost:8848"
public string ServerAddresses { get; set; }
Property Value
Username
用户名(可选)
public string? Username { get; set; }