api工程里边有个很多controller, 其中有一个 DistributionController,再本地环境和测试环境服务器测试访问都正常,部署到正式环境之后,一直报如下错误, 但是其他controller 就都正常,controller的写法也跟其他的正常controller也没什么区别
An error occurred when trying to create a controller of type 'DistributionController'. Make sure that the controller has a parameterless public constructor.
尝试创建“DistributionController”类型的控制器时出错。确保控制器具有无参数公共构造函数
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1721/viewspace-3127083/ ,如需转载,请注明出处,否则将追究法律责任。