• com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '2.34435678977654336E17' in column '3' is outside valid range for the datatype INTEGER.


    ### Error querying database. Cause: java.lang.reflect.UndeclaredThrowableException
    ### The error may exist in class path resource [com/dao/mapper/AdminMapper.xml]
    ### The error may involve defaultParameterMap
    ### The error occurred while setting parameters
    ### SQL: select id,borrowerName,borrowerIdCard,borrowerCellPhone,monthlyIncomeLevel,createTime from t_person_borrower where 1=1 limit 2
    ### Cause: java.lang.reflect.UndeclaredThrowableException] with root cause
    com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '2.34435678977654336E17' in column '3' is outside valid range for the datatype INTEGER.

    看到这一串数字直觉告诉我某个参数获取到的值太大了,

    一查看,哈,果然

    把model里错的那个参数的类型Integer改成Long就没事了

    还有要注意一下model里的参数类型和数据库里对应表的参数的类型

  • 相关阅读:
    读取.robot文件写入excel文件中示例
    提示框、滚动条处理与JS的应用
    下拉框
    切换框架ifame
    层级定位
    定位一组元素
    Appium元素定位方法
    python+appium基本启动配置
    adb命令使用
    Python接口测试框架搭建
  • 原文地址:https://www.cnblogs.com/hhhaisen/p/7873520.html
Copyright © 2020-2023  润新知