jfinal3.0与mysql8.0不兼容吗?启动时报错

启动时报错,错误如下

[ERROR]-[Thread: main]-[com.alibaba.druid.pool.DruidDataSource.init()]: init datasource error, url: jdbc:mysql://localhost:3306/pg?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull

java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)

at com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.java:1041)

at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3496)

at com.jcbase.test.AppRun.main(AppRun.java:16)

Caused by: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long

at com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.java:992)

... 44 more


评论区

热门反馈

扫码入社