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即可解决上述异常。  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2021-11-23
  • 2021-10-29
猜你喜欢
  • 2021-08-18
  • 2022-12-23
  • 2021-10-26
  • 2021-08-03
  • 2021-08-29
  • 2021-08-03
相关资源
相似解决方案