在大配置MyBatis.xml中:  不能有空节点属性 ,否则启动服务器后点击登录没有反应。

使用MyBatis框架时发现的一些小bug

 

异常问题:

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,我删除了默认之就好了

 

相关文章:

  • 2021-11-06
  • 2021-10-02
  • 2022-12-23
  • 2021-07-10
  • 2022-01-23
  • 2021-04-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2022-12-23
  • 2021-10-14
  • 2021-10-23
  • 2021-09-24
  • 2021-12-01
  • 2021-10-29
相关资源
相似解决方案