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