Closed qdesk closed 4 years ago
nautowired 读取配置文件的值能跟 spring boot 里面一样 只要写个 @value 标签就能读到 里面的值吗
现在使用NAutowired也可以读取配置文件的 另外被读取的配置需要自己在Startup.cs中加入到容器
Startup.cs
能给个示例代码看下怎么写吗
读取配置文件 文档已经有写了,有什么不清楚的地方可以提出来
好的
nautowired 读取配置文件的值能跟 spring boot 里面一样 只要写个 @value 标签就能读到 里面的值吗