kirov-opensource / NAutowired

ASP.NET CORE Field Injection Implement
MIT License
77 stars 16 forks source link

读取配置文件问题 #8

Closed qdesk closed 4 years ago

qdesk commented 4 years ago

nautowired 读取配置文件的值能跟 spring boot 里面一样 只要写个 @value 标签就能读到 里面的值吗

FatTigerWang commented 4 years ago

现在使用NAutowired也可以读取配置文件的 另外被读取的配置需要自己在Startup.cs中加入到容器

qdesk commented 4 years ago

能给个示例代码看下怎么写吗

FatTigerWang commented 4 years ago

读取配置文件 文档已经有写了,有什么不清楚的地方可以提出来

qdesk commented 4 years ago

好的