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>
解决方法:删除表中的数据。