java.sql.SQLException: No suitable driver found for JDBC:jdbc:mysql://127.0.0.1:3308/horizontalline?useSSL=false;serverTimezone=UTC
今天部署项目链接数据库时报错 数据库用的是Mysql8.0 网上所有方法都试过了
Class.forName("com.mysql.cj.jdbc.Driver");
Connection connect = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3308/horizontalline?useSSL=false;serverTimezone=UTC";"root";"123456");
jar包没错 也倒包了 也把包放入jre里面了