修改数据库中的内容报错:PropertyAccessException:Null value was assinged to a property of primitive type setter of

错误原因:totalTime的类型为int,数据库中为NULL,int 类型不能赋值为NULL,只能为0,所以报此异常。

解决方案:将totalTime的类型改为Integer,或者初始化为0

相关文章:

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