org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.wa.dataprocess.query.model.AcrossDeptApply
包装类和基本数据类型的区别,
包装类默认为null,基本类型为0.
public class AcrossDeptApply implements Serializable
private String applyReason;//申请原因
private String status;//是否撤销申请 0
private long applyUserId
//......getter ,setter
}
将基本类型的long改为包装类Long即可解决上述异常。