Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

结果中有total字段不能反序列化 #177

Open
kaibo-li opened this issue Jul 2, 2024 · 2 comments
Open

结果中有total字段不能反序列化 #177

kaibo-li opened this issue Jul 2, 2024 · 2 comments

Comments

@kaibo-li
Copy link

kaibo-li commented Jul 2, 2024

使用httpclient请求接口total字段有有值,使用 retrofit返回字段total 不能反序列化(使用版本2.4.1)
微信图片_20240702124956

@chentianming11
Copy link
Collaborator

total字段可以正常反序列化。你这边可以通过指定@Logging(logStrategy = LogStrategy.BODY)打印响应报文看看是否有问题,
image

@Qin-K
Copy link

Qin-K commented Jul 30, 2024

retrofit 底层默认使用的 jackson进行反序列化,看你用httpclient是用的fastjson看下是不是这个差异导致的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants