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

问题: 页面展示信息是报错, 因为数据库中某时间戳的列值为 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

原因: 不知道建表时默认还是自己无意插入的,其中有行记录时间戳的默认值为 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》作者:极四维博客
    原文链接:https://cway.top/post/182.html
    特别注明外均为原创,转载请注明。

    分享到微信

    扫描二维码

    可在微信查看或分享至朋友圈。

    相关文章

    发表评论:

    ◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

    «    2025年6月    »
    1
    2345678
    9101112131415
    16171819202122
    23242526272829
    30

    搜索

    控制面板

    您好,欢迎到访网站!
      查看权限

    最新留言

    文章归档

    • 订阅本站的 RSS 2.0 新闻聚合