program里,通过以下方式拿到appsettings.json里的配置
修改了默认的webroot路径
string wwwroot= new ConfigurationBuilder().Add(new JsonConfigurationSource { Path = "appsettings.json", ReloadOnChange = true }).Build().GetValue<string>("AppSettings:wwwroot");
CreateWebHostBuilder(args).UseWebRoot(wwwroot).Build().Run();