摘要:
public class A{ private int id; pirvate Date createTime private B b; }public class B{ private int id; private String name; private Date createTime;}此时,如果用google json组件返回A对象时,会报declares multiple JSON fields named异常,出现这个异常是因为,两个类都有createTime同名属性。解决方案:public class SomeClassWithField... 阅读全文