1.第一步在我们的AppSettings.json 文件中配置好需要的参数
2.创建一个AppSettingHelp类
引用:
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.Json;
3.然后我们就可以在Startup中进行调用
string UrlName = AppSettingHelp.Configuration["Test:Task"];
标签:AppSettings,AppSettingHelp,获取,json,Extensions,using,Configuration From: https://www.cnblogs.com/hedaniu/p/17317536.html