InvalidOperationException: Action 'TemplateNetCore.Controllers.CommonController.CommonExcuteReflectionMethod (TemplateNetCore)'
does not have an attribute route. Action methods on controllers annotated with ApiControllerAttribute must be attribute routed.
如果控制器增加了属性[ApiController] , 则必须要在每个方法上增加路由特性,或者在控制器上增加路由特性(Attribute)
微信扫码查看本文
发表评论