.netcore A circular dependency was detected for the service of type '****'. 出现这个错误,报服务器500错误,是由于两个service之间出现了循环依赖问题,如A中注入B,B中也注入了A 解决方法:去掉一个依赖即可