gistfile1.txt @JsonProperty("store_id")@JsonInclude(JsonInclude.Include.NON_NULL)private Integer storeId; 为什么一般的 传入的VO实体对象 里面 都是用Integer 不是用int? 因为java是面向对象的 封装 继承 多台 i
@JsonProperty("store_id") @JsonInclude(JsonInclude.Include.NON_NULL) private Integer storeId; 为什么一般的 传入的VO实体对象 里面 都是用Integer 不是用int? 因为java是面向对象的 封装 继承 多台 int 是基本类型,只能做 + - * / 基本操作,integer 的方法就多了。 继承的话:有其他类继承Integer,这样新的类就不用再重写重复的方法了,直接用父类Integer的。 多肽:面向抽象编程,运行时动态绑定