关于java.math.BigInteger cannot be cast to java.lang.Integer小方法

mysql数据库 Biginteger 转换为Integer、Long类型时的错误:error提示java.math.BigInteger cannot be cast to java.lang.Integer 做项目时用到原生sql count(*)查询时出现的,记录一下方便以后参考: 解决方法如下: 现将查询的结果toString()一下,然后用Integer.valueOf()方法强转就可以
相关文章
相关标签/搜索