java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp

原因是查询出的结果集中有一行的数据为'0000-00-00 00:00:00',而mysql数据库中的timestamp的范围是:’1970-01-01 00:00:00’到2037年。

所以删除超出的日期即可。

相关文章:

  • 2021-07-17
  • 2022-03-04
  • 2021-08-11
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2021-04-19
  • 2021-09-16
  • 2022-12-23
  • 2021-08-08
  • 2021-05-21
  • 2021-08-22
相关资源
相似解决方案