這樣的報(bào)錯(cuò)內(nèi)容
?Error attempting to get column 'create_time' from result set.? Cause: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
; ]; Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp; nested exception is java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
2020-05-18
2020-05-18
創(chuàng)建秒殺成功表的時(shí)候有create_time這個(gè)屬性,但是在在插入記錄insertSuccessKilled()時(shí)候沒(méi)有涉及create_time,因此create_time是空值,導(dǎo)致queryByIdWithSeckill()測(cè)試失?。╯k.create_time為空)。
我三月份遇到這個(gè)問(wèn)題,還沒(méi)解決。。。。