QueryRunner insert 报错java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
![](https://i-blog.csdnimg.cn/blog_migrate/30cef393a9ea908ae5219c3bc3744783.png)
网上经常搜到是 说驱动版本号的问腿 我改了两个版本发现还是解决不了 于是
把Long 改成BigInteger 完美解决
![](https://i-blog.csdnimg.cn/blog_migrate/9169671a2711666ffa43638d51e3c7a0.png)
QueryRunner insert 报错java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
网上经常搜到是 说驱动版本号的问腿 我改了两个版本发现还是解决不了 于是
把Long 改成BigInteger 完美解决