Null value was assigned to a property of处理办法

实体类中是int型,数据库中为null,在查询时报错Null value was assigned to a property of...

解决:将int型换为包装类Integer

猜你喜欢

转载自blog.csdn.net/weixin_41996632/article/details/85614236