Cause: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timest

HTTP Status 500 - Request processing failed; nested exception is org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column 'coupon_end_time' from result set. Cause: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp

    问题:页面展示信息是报错,因为数据库中某时间戳的列值为0000-00-00 00:00:00,所有报错

    原因:因为我时间戳的默认值为,0000-00-00 00:00:00,我删除了默认之就好了


你可能感兴趣的:(Cause: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timest)