在大配置MyBatis.xml中: 不能有空节点属性 ,否则启动服务器后点击登录没有反应。
异常问题:
ause: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp:
解决办法:
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,我删除了默认之就好了