出現`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名字。