[Js-开发常识]为什么定义实体类属性建议用 Ineger 而不是 int

因为 Integer 包装类型允许 null 值,避免在框架底层调用时产生空指针异常所以一般建议使用 Integer

原文地址:https://www.cnblogs.com/jiasq/p/8588767.html