JEECG中出现Java.sql.SQLException: Value 'xxxx' can not be represented as java.sql.Timestamp的解决办法

出现`Java.sql.SQLException: Value 'xxxx' can not be represented as java.sql.Timestamp',其中xxxx部分对应包含一个看得见的时间串的字符串(其中大部分是乱码),解决办法是全局替换

jdbc:mysql://localhost:3306/jeecg?useUnicode=true&characterEncoding=UTF-8

jdbc:mysql://localhost:3306/jeecg?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull

其中这里的jeecg是我的MySQL的database名字。

原文地址:https://www.cnblogs.com/zifeiy/p/7745995.html