Spring Boot接口Postman正常,Android AsyncTask调用报请求体缺失
求助:Spring Boot接口Postman测试正常,Android AsyncTask调用却提示“Required request body is missing”
最近碰上个头疼的问题,我基于Spring Boot开发的接口,用Postman测试的时候一切正常,但换成Android的AsyncTask调用时,直接抛出异常,提示**"Required request body is missing"**。翻了好多次相关问题还是没排查出自己场景的问题,恳请各位大佬帮忙分析下!
我的Spring Boot服务端接口代码片段如下:
@RequestMapping(path="/sellerRegistration", method = RequestMethod.POST, consumes = "application/json") public String doSellerRegistration(@RequestBody SellerRegistrationRequest request) { // 接口业务逻辑实现 }
内容的提问来源于stack exchange,提问作者mangaldas lima
相关产品推荐
相关产品推荐

