//添加 json 文件路径
var builder = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appsettings.json");

//创建配置根对象
var configurationRoot = builder1.Build();
//读取到ioc IOptions<SuperAppsettings> setting 依赖注入
services.Configure<SuperAppsettings>(configurationRoot.GetSection("super"));   // 依赖注入

												

最新文章

  1. 由Collections.unmodifiableList引发的重构
  2. java中静态的代码块,静态变量,静态方法
  3. 1890. Money out of Thin Air(线段树 dfs转换区间)
  4. android实现json数据的解析和把数据转换成json格式的字符串
  5. 玩转Web之Jsp(三)-----Jsp+SQLServer 用sql语句实现分页
  6. google code 上源码的下载方法
  7. JVM-1.编译
  8. UVW源码漫谈(二)
  9. doubi -- 初创
  10. RBM如何训练?
  11. amaze UI 如何添加原生表单验证
  12. Intellij IDEA 4种配置热部署的方法【转】【补】
  13. [Swift]LeetCode843. 猜猜这个单词 | Guess the Word
  14. 9 个 Yoinkmac使用小技巧,提升你的 Mac 文档解决效率
  15. php中按值传递和按引用传递的一个问题
  16. [转帖]/etc/security/limits.conf的含义
  17. what&#39;s the python之异常处理
  18. react 首屏加载优化
  19. PostMessage实现多窗口之间的数据传递
  20. 谈谈Linux下的数据流重定向和管道命令

热门文章

  1. 栈与队列基本操作 Java实现
  2. C++常用数据类型和Windows常见数据类型
  3. python 高阶函数 lamdad reduce map
  4. 从入门到自闭之Python--MySQL数据库的操作命令
  5. dos2unix、diff命令
  6. tensorflow零起点快速入门(3)
  7. JSONObject 的使用
  8. 怎样使用 v-on 指令?
  9. Eclipse连接数据库报错Local variable passwd defined in an enclosing scope must be final or effectively final
  10. Bootstrap3基础教程 02 网格布局