《.net core/.net6》.net6如何读取配置文件
appsettings.json设置字符串
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"SqlConn": "PORT=5432;DATABASE=WebApp;HOST=localhost;PASSWORD=12
原创
2022-01-25 09:03:50 ·
2216 阅读 ·
0 评论