java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Timestamp 错误是因为时间类型出现了0000-00-00 00:00:00 而在hibernate将结果映射成实体时,会认为此种格式不是正确的java.sql.Timestamp,固会报错

解决方式是在url后添加&zeroDateTimeBehavior=convertToNull

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

 

相关文章:

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