ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long on connect to MySQL

前端 未结 4 1271
野的像风
野的像风 2020-11-22 15:38

When connecting to MySQL, I get an error (see below).

Click here for code

I get this output:

run:
Now connecting to databse...

java.sql.SQLE         


        
4条回答
  •  醉梦人生
    2020-11-22 16:13

    This issue is not there with 5.1.45 as mentioned in the above comments. Available to download at,

    https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.45/

提交回复
热议问题