最近项目中使用Autofuc实现依赖注入时出现错误:
None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'XXXController' can be invoked with the available services and parameters
实现依赖注入的时候要记得Service要继承ApplicationService
最近项目中使用Autofuc实现依赖注入时出现错误:
转载于:https://www.cnblogs.com/bernardblack/p/8649170.html