天天看点

mybaits : attempted to return null from a method with a primitive return type (int)【已解决】

错误如下:
mybaits : attempted to return null from a method with a primitive return type (int)【已解决】

原因是返回字段值int类型时,为null,要保持一致使用包装类,以下三处,不是返回的Integer,还是会报null的异常

mybaits : attempted to return null from a method with a primitive return type (int)【已解决】
mybaits : attempted to return null from a method with a primitive return type (int)【已解决】
mybaits : attempted to return null from a method with a primitive return type (int)【已解决】

继续阅读