leaseEndDate: java.sql.Date cannot be assigned from null

业务
leaseEndDate: java.sql.Date cannot be assigned from null
代码

 Date date = rs.getDate(23);
                if(date!=null){
                    rentalInfo.setLeaseEndDate(date.toString());
                }else{
                    rentalInfo.setLeaseEndDate("--");
                }

报错
leaseEndDate: java.sql.Date cannot be assigned from null
解决方法:
maven clean然后install一下就可以了

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-05-31
  • 2022-12-23
  • 2022-02-06
  • 2021-08-27
相关资源
相似解决方案