5

Java 新手求救, jackson 反序列化, TypeReference 里面的内容还有泛型, 怎么解决?

 2 years ago
source link: https://www.v2ex.com/t/818423
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Java

Java 新手求救, jackson 反序列化, TypeReference 里面的内容还有泛型, 怎么解决?

  ccppgo · 10 小时 43 分钟前 · 347 次点击

这个位置怎么样才能实现动态性啊

框住的 extra 一共这么多种类型,全部继承自 AbstractExtra, 这些类实际上没有共同性, 只是为了方便,限定是 extra 我可以根据 cmd 去选择其中一个 extra 子类, 但是不知道 java 的语法怎么写

我写了个测试, 我固定写一种 extra 的类型是可以顺利运行的, 现在是完全不知道怎么动态


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK