Java.lang.runtime exception : org.spring framework.Dao.dataintegrityviolationexception : # # errorupdatingdatabase.cause : com.MySQL.CJ.JDBC.exceptions.MySQL data truncation 3360 data truncation 3360 incorrect dation ' for column ' begin _ time ' atrow1# # # theerrormayinvolvecom.style feng.guns.rest.com mon.persistence.Dao.mooce birthday=? 邮件=?user_phone=?address=? biography=?life_state=?begin_time=?update_time=? WHERE UUID=? # # cause : com.MySQL.CJ.JDBC.exceptions.MySQL data truncation 3360 data truncation 3360 incorrectdatetimevalue 3360 ]; data truncation : incorrectdatetimevalue : ' 1970-01-010033600336000.0 ' for column ' begin _ time ' atrow 1; nestedexceptioniscom.MySQL.CJ.JDBC.exceptions.MySQL data truncation 3360 data truncation 3360 incorrectdatetimevalue 3360 00 . spring framework.Dao.dataintegrityviolationexception : # # errorupdatingdatabase.cause : com.MySQL.CJ.JDBC.exceptions.MySQL data truncation 3360 data truncation 3360 incorrect dation ' for column ' begin _ time ' atrow1# # # theerrormayinvolvecom.style feng.guns.rest.com mon.persistence.Dao.mooce birthday=? 邮件=?user_phone=?address=? biography=?life_state=?begin_time=?update_time=? WHERE UUID=? # # cause : com.MySQL.CJ.JDBC.exceptions.MySQL data truncation 3360 data truncation 3360 incorrectdatetimevalue 3360 ]; data truncation : incorrectdatetimevalue : ' 1970-01-010033600336000.0 ' for column ' begin _ time ' atrow 1; nestedexceptioniscom.MySQL.CJ.JDBC.exceptions.MySQL data truncation 3360 data truncation 3360 incorrectdatetimevalue 3360
caused by : com.MySQL.CJ.JDBC.exceptions.MySQL data truncation 3360 data truncation 3360 incorrectdatetimevalue 3360 ' 1360 ' datetime以YYYY-MM-DD HH:MM:SS格式搜索和显示datetimims的范围为1000-01-01 0033600033600336000到9999-12-31 23:59:59
http://www.Sina.com/:将MySQL时间类型从timestamp更改为datetime即可。
谢谢: https://blog.csdn.net/QQ _ 39240270/article/details/88903447