classNotFound Exception when using JDBC for MYSQL on Tomcat in eclipse

后端 未结 4 1736
旧巷少年郎
旧巷少年郎 2021-01-17 02:03

This seems to be a common problem, but I could not find a working solution. I\'ve looked through dozens of thread and have been working with my teacher. I am trying to conn

4条回答
  •  有刺的猬
    2021-01-17 02:59

    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

    You missing MySQL driver library. Since, you are using Mysql database, make sure you have included mysql-connector-java.

    
        mysql
        mysql-connector-java
        8.0.8-dmr
    
    

提交回复
热议问题