Caused by: java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306
at com.baomidou.mybatisplus.generator.config.DataSourceConfig.getConn(DataSourceConfig.java:253)
at com.baomidou.mybatisplus.generator.query.DefaultQuery.<init>(DefaultQuery.java:57)
... 119 more
Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306
Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:702)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
at com.baomidou.mybatisplus.generator.config.DataSourceConfig.getConn(DataSourceConfig.java:241)
... 120 more
确认
当前程序版本
3.5.7
问题描述
通过FastAutoGenerator.create方法进行创建,但是builder中根本没有driverName方法,看过官网文档,是现在必须要手动自己根据连接类型判断使用MysqlQuery还是其它数据库Query吗?我看那些Query类里也没有driverName。很困惑,网上搜到的,好像以前版本是可以手动设置driverName的。
详细堆栈日志