首页 > 其他分享> > Null value was assigned to a property of primitive type setter of cn.mrlij.pojo.SetItem.bz; nested e
Null value was assigned to a property of primitive type setter of cn.mrlij.pojo.SetItem.bz; nested e
作者:互联网
Null value was assigned to a property of primitive type setter of cn.mrlij.pojo.SetItem.bz; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of cn.mrlij.pojo.SetItem.bz
打印错误如上:
错误原因:Hibernate 在原有表基础上新增一行double 类的bz,使得原有的数据bz这一行就是NULL,
<property name="bz" ></property>
解决方法:删除表中的数据。
标签:primitive,cn,pojo,assigned,Null,bz,setter 来源: https://blog.csdn.net/qq_39101819/article/details/98967037