使用阿里巴巴的fastjson转换实体类为json,发现不能转换父类的属性 需要在实体类上面加上此注解即可 @ToString(callSuper=true) 其他扩展注解 @EqualsAndHashCode(callSuper = true)