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里的參數類型和數據庫里對應表的參數的類型


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM