Skip to content

get 请求 使用dataType = Json 时,如果使用对象接受,内容为null #234

@ylq5126

Description

@ylq5126

升级到1.7.3后,如果使用get请求,且使用对象接受返回值,返回内容为null,如果使用 String 接受能正常获取到。1.6.4版本能正常获取到
POST请求使用对象接受没有问题

环境说明:
jdk8,原生java环境,使用fastjson2 2.0.57

接口请求demo
@get(url = "${baseUrl}/login", dataType = "json")
LoginRes login(@query LoginReq loginReq)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions