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

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後添加&zeroDateTim
相關文章
相關標籤/搜索