AutoFac异常问题
AutoFac.core.DependencyResolution.Exception:An exception was throw while activating XXX.XXXController ; can be invoked with the available services and parameters
报错异常

解决方法:请确保控制器具有无参数公共构造函数,加上如下代码 


参考链接: [https://blog.csdn.net/wangchaoqi1985/article/details/113986499).
好记性不如烂笔头