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

前端 未结 18 2155
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 15:41

What is wrong with the code there are lots of error while debugging. I am writing a code for a singleton class to connect with the database mysql.

Here is my code

18条回答
  •  误落风尘
    2020-11-22 16:05

    I Understood your problem add this dependency in your pom.xml your problem will be solved,

    https://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.38

提交回复
热议问题