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

 

 

 

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

 

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

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

 

 

 注入一个就ok

 

上一篇:Go语言的环境配置与Hello world


下一篇:VS Code中Golang环境配置