在Asp.net core 3.0的webapi项目中,发送json格式的post请求后,返回的header中error提示The JSON value could not be converted to

 

asp.net core 3.0中webapi post请求返回http 400

解决方法:

安装Microsoft.AspNetCore.Mvc.NewtonsoftJson 包

在ConfigureServices中添加services.AddNewtonsoftJson();

asp.net core 3.0中webapi post请求返回http 400

 

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2022-01-19
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2018-04-11
  • 2022-12-23
  • 2022-02-26
  • 2021-10-11
相关资源
相似解决方案