WebApi2 中使用Autofac映射会报如下错误:请确保控制器具有无参数的公共构造函数 An error occurred when trying to create a controller of type 'xxxController'. Make sure that the controller has a parameterless public constructor."
示例代码如下:链接:https://pan.baidu.com/s/1Nfs7E6uv7KxPK1U7s8szjw
大部代码已经写到了文章里了,https://lebang2020.cn/details/2009242wkngv1r.html
请点击捐赠捐赠按钮查看提取码。
推荐文章:
💰 此内容为付费阅读 请先登录