在父類別定義上面加上 @JsonTypeInfo 註解之後,序列化與反序列化的輸出結果如下。 -- 序列化-- {"shapes":[ {"@class":"com.example.demo.javabase.
確定! 回上一頁