11 2019 档案

摘要:最近在写net core的项目,在非controller和service里面需要用到appsetting.json文件里面的一些配置,查资料大概有几种思路: 注入,然后config.GetSection("xxx") 写一个监听,filewatch,去监听appsetting.json的变化,读取k 阅读全文
posted @ 2019-11-12 15:23 CoderSilence 阅读(728) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示