在做spring boot项目时用postman进行json调用测试时出现以上错误:
这表达的意思是说上下文的类型格式不对,后台要求为json格式,而上传的是text/plain格式。所以将调用路径的header加上key Content-Type,value为application/json。如下图:
org.springframework.web.HttpMediaTypeNotSupportedException: Content type ‘text/plain;charset=UTF-8‘

相关文章:

  • 2021-05-29
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
猜你喜欢
  • 2021-05-17
  • 2021-06-19
  • 2022-01-16
  • 2021-08-26
  • 2022-12-23
相关资源
相似解决方案