java.lang.ClassNotFoundException: com.mysql.jdbc.Driver解决方式

在项目右键 Properties 》 Build Path 》 Configure Build Path 引用了 mysql-connector-java-X.X.XX-bin.jar 后,依然报“java.lang.ClassNotFoundException”错误;

在web项目中引用com.mysql.jdbc.Driver ,要特别注意需要将mysql-connector-java-X.X.XX-bin.jar 拷贝至Tomcat 》 Lib目录;

 

posted on 2017-12-10 00:44  优乐多  阅读(179)  评论(0编辑  收藏  举报

导航