appsettings.json

"ReportPic": [
    {
      "plant": "P1",
      "pic": "test"
    },
    {
      "plant": "P3",
      "pic": "test1"
    }
//读取数组配置
            ConfigServer.ReportPic = (ReportPic[])config.GetSection("ReportPic").Get(typeof(ReportPic[]));

 

相关文章:

  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-07-13
  • 2021-08-21
  • 2022-12-23
  • 2021-06-24
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案