出现上图那样的情况 一般是没有在Startup类中的ConfigureServices中注入接口和实现类
注入一个就ok
Unable to resolve service for type`***` while attempting to activatre `***`
原文:https://www.cnblogs.com/lixia0604/p/14768242.html