Unable to resolve service for type`***` while attempting to activatre `***`

出现上图那样的情况 一般是没有在Startup类中的ConfigureServices中注入接口和实现类

 注入一个就ok

原文地址:https://www.cnblogs.com/lixia0604/p/14768242.html