标签:classnotfoundexceptioncom.mysql.jdbc.driver
调试3M网站项目时出现错误提示:ClassNotFoundExceptioncom.mysql.jdbc.Driver
原因分析:项目中缺少mysql-connector-java-5.1.22-bin.jar包
解决办法:
①右键工程名->New->Folder,新建文件夹lib,右键lib文件夹->Import导入mysql-connector-java-5.1.22-bin.jar
②选中jar包右击--->BuildPath--->Add To Build Path,如下图所示:
测试结果:在浏览器中输入地址:http://localhost:8080/3M/,显示正常
本文出自 “DOSOM” 博客,谢绝转载!
ClassNotFoundExceptioncom.mysql.jdbc.Driver
标签:classnotfoundexceptioncom.mysql.jdbc.driver
原文地址:http://8656934.blog.51cto.com/8646934/1747710