摘要: AutoFac 属性注入需要改两个位置 1、用Autofac进行注入,对全部控制器进行 属性注入:Autofac中通过对ControllerFeature中的Controller进行IOC注册,并使用PropertiesAutowired开启属性注入。 #region 对Controller类型注册 阅读全文
posted @ 2021-03-24 10:50 zeran 阅读(949) 评论(1) 推荐(0)