[英]Eclipse can't reach mysql connector driver in the project path
I've been trying to create an eclipse JPA project but for some reason i get the following error. 我一直在尝试创建一个Eclipse JPA项目,但是由于某种原因,我收到以下错误。
I created aa simple java project and dropped the libraries in a folder called lib, and added these jar files in the java build path: 我创建了一个简单的Java项目,并将库放在名为lib的文件夹中,并将这些jar文件添加到Java构建路径中:
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)
You are missing a :
after the mysql
in jdbc:mysql//localhost:3306/ci?useSSL=false
. 您遗漏了
:
在后mysql
中jdbc:mysql//localhost:3306/ci?useSSL=false
。 It should be jdbc:mysql://localhost:3306/ci?useSSL=false
. 它应该是
jdbc:mysql://localhost:3306/ci?useSSL=false
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.