Skip to content

请教反序列化包含泛型的问题 #28

@lianfuye

Description

@lianfuye

Result result = JSON.parseObject(str, new TypeReference<Result>(){});

2.x 中这么使用反序列化(包含泛型)时 IDEA 提示下面的错误,请教 2.x 如何处理这块 ?感谢!

无法解析方法'parseObject(java.lang.String, anonymous com.alibaba.fastjson2.TypeReference<com.william.mall.common.model.Result<com.william.mall.common.model.TestUser>>)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions