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

63 阅读1分钟

本文已参与「新人创作礼」活动,一起开启掘金创作之路。

nested exception is java.sql.SQLException: Value ‘…’ can not be represented as java.sql.Timestamp
解决办法在JDBC url连接后面加一个参数
…?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull