使用IOptionsSnapshot读取appsettings配置文件,将Json映射到对象
摘要:
{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts": "*", "ConnectionStrings": { "DefaultConn 阅读全文
posted @ 2022-09-25 18:52 宁静致远. 阅读(101) 评论(0) 推荐(0) 编辑