【发布时间】:2019-12-22 04:39:38
【问题描述】:
【问题讨论】:
-
请附上你的代码,而不是你的代码截图
-
body用于成功响应。使用errorBody获取错误信息的内容。请参阅文档:square.github.io/retrofit/2.x/retrofit/retrofit2/Response.html(显而易见的原因是body对象已反序列化,这对于任何非 2xx 响应都没有意义)
【问题讨论】:
body 用于成功响应。使用errorBody 获取错误信息的内容。请参阅文档:square.github.io/retrofit/2.x/retrofit/retrofit2/Response.html(显而易见的原因是 body 对象已反序列化,这对于任何非 2xx 响应都没有意义)
DTO UserLoginResponse 似乎与请求响应不匹配。请再次检查您的代码。
【讨论】:
它是一个对象,你正在传递 formData...这就是为什么
试试下面的代码..也许它会帮助你..
HashMap<String, String> meMap=new HashMap<String, String>();
meMap.put("email","j@rgmail.com");
meMap.put("password","Jp123?");
【讨论】: