原因:Required request body is missing
时间: 2023-09-18 15:16:17 浏览: 97
postman使用
这个错误通常是由于请求缺少必需的请求体导致的。在使用POST请求时,需要在请求的主体(body)中以JSON的形式提供必要的数据。确保你的请求包含了正确的请求主体。如果你使用Postman进行测试,可以将请求数据以JSON格式写入"Raw"选项卡中。这个错误也可以由于接口方法的参数缺少@RequestBody注解导致。如果你在测试接口时遇到这个错误,可以检查你的请求是否正确地传递了必要的请求体内容。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Required request body is missing 错误解决](https://blog.csdn.net/IBLiplus/article/details/86491530)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [HttpMessageNotReadableException: Required request body is missing:](https://blog.csdn.net/qq_59312178/article/details/125410515)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文