HttpMediaTypeNotSupportedException: Content type 'application/json' not supported出这个问题的原因有很多,再次只能记录我解决的方法。
在postman中访问接口的时候报的这个错:原因是没有在header中添加ContentType参数
如上图添加后没有报错了。
HttpMediaTypeNotSupportedException: Content type 'application/json' not supported出这个问题的原因有很多,再次只能记录我解决的方法。
在postman中访问接口的时候报的这个错:原因是没有在header中添加ContentType参数
如上图添加后没有报错了。