0

I'm using servlet in intellij idea and mysql jdbc. and I have added mysql connector in my project (i.e File->Project Structure ->Libraries) and am still facing the error seems that the intellij cannot find the mysql drivers

enter image description here

Here is the error I'm facing..

`No suitable driver found for jdbc:mysql://localhost:3306/jdbc-db
    at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:702)
    at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
    at com.example.studentapp.HelloServlet.doPost(HelloServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)`
Kelvin
  • 21
  • 4

0 Answers0