.net core3.1 读取配置文件
2021-04-11 00:27
标签:format first lin return info readonly conf col ado 1.配置文件 2.读取方法 .net core3.1 读取配置文件 标签:format first lin return info readonly conf col ado 原文地址:https://www.cnblogs.com/wangdash/p/12420122.html{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"wizards": [
{
"Name": "Gandalf",
"Age": "1000"
},
{
"Name": "Harry",
"Age": "17"
}
],
"AllowedHosts": "*"
}
public class FirstController : Controller
{
private readonly ILogger