Eclipse 无法到达项目路径中的 mysql 连接器驱动程序
Eclipse can't reach mysql connector driver in the project path
我一直在尝试创建一个 eclipse JPA 项目,但由于某种原因我收到以下错误。
我创建了一个简单的 java 项目并将库放在名为 lib 的文件夹中,并在 java 构建路径中添加了这些 jar 文件:
java.sql.SQLException: No suitable driver found for jdbc:mysql//localhost:3306/ci?useSSL=false
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.practico2.test.TestJDBC.main(TestJDBC.java:17)
您在 jdbc:mysql//localhost:3306/ci?useSSL=false
中的 mysql
之后缺少 :
。应该是 jdbc:mysql://localhost:3306/ci?useSSL=false
.
我一直在尝试创建一个 eclipse JPA 项目,但由于某种原因我收到以下错误。
我创建了一个简单的 java 项目并将库放在名为 lib 的文件夹中,并在 java 构建路径中添加了这些 jar 文件:
java.sql.SQLException: No suitable driver found for jdbc:mysql//localhost:3306/ci?useSSL=false
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.practico2.test.TestJDBC.main(TestJDBC.java:17)
您在 jdbc:mysql//localhost:3306/ci?useSSL=false
中的 mysql
之后缺少 :
。应该是 jdbc:mysql://localhost:3306/ci?useSSL=false
.