JDBC连接失败java.sql.SQLException: ...ClassCastException: BigInteger cannot be cast to Long

在代码里连接数据库执行批量插入,结果一直报错如上。

最后发现是mysql jar包的问题

原来的jar包版本和我的MySQL版本不一致。最后把mysql-connector-java-5.1.22改成mysql-connector-java-5.1.48就行了

JDBC连接失败java.sql.SQLException: ...ClassCastException: BigInteger cannot be cast to Long

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
猜你喜欢
  • 2021-09-10
  • 2021-10-31
  • 2021-11-09
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
相关资源
相似解决方案