get请求Required request body is missing
时间: 2023-09-18 21:16:14 浏览: 108
这个问题是由于使用了GET请求并且在Controller的方法中使用了@RequestBody注解导致的。GET请求的数据不是以JSON格式发送的,所以无法使用@RequestBody来封装数据。解决这个问题的方法有两个:<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Required request body is missing 错误解决](https://blog.csdn.net/qq_52183856/article/details/129995718)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [长记性了,GET请求出现Required request body is missing](https://blog.csdn.net/weixin_43991241/article/details/122239058)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [get方法Required request body is missing](https://blog.csdn.net/liubei_l/article/details/73740261)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文