zoukankan      html  css  js  c++  java
  • 使用MyBatis框架时发现的一些小bug

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

  • 相关阅读:
    socket
    netstat
    列表
    突然发现不会写代码了
    算法资源
    bit位操作
    排序算法
    连续子数组最大和
    books
    凸优化
  • 原文地址:https://www.cnblogs.com/java-123/p/9914828.html
Copyright © 2011-2022 走看看