Unable to resolve service for type`***` while attempting to activatre `***` 出现上图那样的情况 一般是没有在Startup类中的ConfigureServices中注入接口和实现类 注入一个就ok