netcore 使用 IOptions 读取配置文件
{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "AllowedHosts": "*", "HC": { "Redis": { "aa": "1" }, "DB": { "bb": 2 } } }
netcore 使用 IOptions 读取配置文件
{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "AllowedHosts": "*", "HC": { "Redis": { "aa": "1" }, "DB": { "bb": 2 } } }
相关文章: