mybatis報錯com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect date value

項目中遇到時間存入數據庫時報錯com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect date value: 'Fri Dec 21 15:19:22 CST 2018' for column 'UPDATE_TIME' at row 1   糾結了幾個小時後發現是因爲我數據庫中的時間格式是yyyy-
相關文章
相關標籤/搜索