6
有沒有什麼辦法可以告訴傑克遜在序列化子類時忽略父類的屬性?傑克遜:忽略父類屬性
class Parent{ private String parentProperty1; private String parentProperty2; //getter setter } @IgnoreParentProperties // I am expecting something like this class Child extends Parent{ private String childProperty1; //getter setter }
似乎更好的解決方案:) thnx :) – 2011-12-30 06:27:24
如果這解決了您的問題,我可以麻煩你[接受答案](http://meta.stackexchange.com/questions/5234/how-does-accepting -an回答工作)? – 2011-12-30 06:32:10