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

 

 

 

 

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

 

 

 注入一个就ok

 

posted @ 2021-05-14 13:43  lixia64  阅读(1624)  评论(0编辑  收藏  举报