报错是因为could not instantiate class [com.jinqing.cashier.entity.abstractVO.TradeItemVO] from tuple

构造方法里需要传参,如果数据库里参数为NULL就会报错。
解决方法一 把数据库里参数的默认值设为空串

二 could not instantiate class [com.jinqing.cashier.entity.abstractVO.TradeItemVO] from tuple

 

构造函数里先判断是否为NULL  long改为封装Long

 

相关文章:

  • 2021-10-16
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
猜你喜欢
  • 2022-12-23
  • 2021-09-08
  • 2022-02-13
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案