WebAPI2使用AutoFac依赖注入完整解决方案。 参考文章: (1)WebAPI2使用AutoFac依赖注入完整解决方案。 (2)https://www.cnblogs.com/tdws/p/5271040.html 备忘一下。