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名字。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM