mybatis 报错java.math.BigInteger cannot be cast to java.lang.Integer

解决方式:

原因分析:mysqlbigint无符号行转为java的Long是没有问题的。但是单位Unsigned即无符号型则增加了已给数量级。因此Long的精度已经不够用了,因为被mybatis转为了更大的bigInteger。

猜你喜欢

转载自blog.csdn.net/Lei_Da_Gou/article/details/81389028