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

前端 未结 6 1204
刺人心
刺人心 2020-11-28 16:13

I am new to mysql and jdbc and I am getting the error in this title. I have been searching all day and cannot find a solution that works for me.

What I have tried:

6条回答
  •  甜味超标
    2020-11-28 16:53

    If You Are Using Swing you have to add External Jar of my-sql-connect

    else if You are Using jsp servlet You have to add External jar and Copy that Jar into WEB_INF/lib project folder

提交回复
热议问题