zhoufenglokki / mappingrpc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

返回 ModelResult<User> 泛型时无法解析

iiscarves opened this issue · comments

ApiProxyMeta.java的returnType属性定义为Type类型,fastjson中有支持泛型的解析需要传入type,或TypeReference类型

public static final T parseObject(String input, Type clazz, Feature... features) {
return (T) parseObject(input, clazz, ParserConfig.getGlobalInstance(), DEFAULT_PARSER_FEATURE, features);
}