java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 解决方法
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.oracle.util.DbUtil.getCon(DbUtil.java:15)
at com.oracle.util.DbUtil.main(DbUtil.java:31)
数据库连接失败ERROR!
当连接数据时必须要把mysql-connector-java-5.1.7-bin.jar导入到tomcat的lib目录下面!