使用postman调试api接口返回required request body is missing的错误

  • A+
所属分类:Java

---
title: 使用postman调试api接口返回Required request body is missing的错误
date: 2018-11-23 16:36:21
categories: app
tags:
- json
- 参数
- 错误
- 调试
- api
- request
- postman
- 使用
- 接口
- 返回
- Required
- body
- missing
- 格式
- raw
---

后台是用@RequestBody的方式来接受参数的。用postman返回Required request body is missing的错误。

百度了一下,发现@RequestBody这种方式用postman发起请求时要在body里选择raw的方式,并选择json格式来传参数。

使用postman调试api接口返回required request body is missing的错误

ZPY

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: