- 本机正常,mysql数据库使用mariadb驱动
- 放在ubuntu服务器上报错
数据库url参数:{ type:"org.nutz.dao.impl.SimpleDataSource", url:"jdbc:mysql://172.255.1.112:3306/cloud", UserName:"root", Password:"aA123456", PoolInitialSize:1, PoolMinIdle:10, PoolMaxActive:40, maxWait:60000}
Exception in thread "main" java.lang.AbstractMethodError: org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(Ljava/sql/Connection;)V
at org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:213)
at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:159)
at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithoutTransaction(NutDaoRunner.java:126)
at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:93)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:82)
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)
at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:193)
at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:178)
at org.nutz.dao.impl.NutDao.<init>(NutDao.java:105)
at com.hg.db.mariadb.DBUtils.getDAO(DBUtils.java:67)
at com.hg.db.mariadb.DBUtils.getDAO(DBUtils.java:91)
at com.main.StartLocalRocketMQConsumer.startPushSubscrible(StartLocalRocketMQConsumer.java:89)
at com.main.StartLocalRocketMQConsumer.main(StartLocalRocketMQConsumer.java:65)