Value '' can not be represented as java.sql.Timestamp

org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column 'update_date' from result set.  Cause: java.sql.SQLException: Value '' can not be represented as java.sql.Timestamp
; SQL []; Value '' can not be represented as java.sql.Timestamp; nested exception is java.sql.SQLException: Value '' can not be represented as java.sql.Timestamp

解決辦法 jDBC url連接後面加一個參數

&zeroDateTimeBehavior=convertToNull
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章