今天写了一个方法和接口,需要将接口通过依赖注入的方式注入到Controller里面,但是却出现了InvalidOperationException: Unable to resolve service for type 'WebAPI.Services.IPropertyCheckerService' while attempting to activate 'WebAPI.Controllers.CompaniesController'.在网上搜了之后才发现,需要在StartUp的Service里面注册一下。
Unable to resolve service for type的问题
免责声明:文章转载自《Unable to resolve service for type的问题》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇vue 实现像web淘宝一样区域放大功能idea 快捷使用(一)条件断点的使用下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=