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
当父类的父类定义了范型, 子类反序列化失败 #2361
Comments
泛型参数没有继承到子类,导致编译擦除引起的。建议将泛型参数继承到子类反序列化时使用T ypeR eference |
springboot 可以如下配置 解决
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public class SuperBaseReply {
private List items;
}
public class BaseReply extends SuperBaseReply {
}
public class TestReply extends BaseReply {
}
当反序列化TestReply的时候, getItems会报失败,JSONOBJECT无法转的问题
The text was updated successfully, but these errors were encountered: