asp.net core 3.0中webapi post请求返回http 400
时间:2019-12-26 23:07:51
收藏:0
阅读:954
在Asp.net core 3.0的webapi项目中,发送json格式的post请求后,返回的header中error提示The JSON value could not be converted to
解决方法:
安装Microsoft.AspNetCore.Mvc.NewtonsoftJson 包
在ConfigureServices中添加services.AddNewtonsoftJson();
原文:https://www.cnblogs.com/xbzhu/p/12104959.html
评论(0)