JavaWeb项目中如果使用了com.mysql.jdbc.Driver,若要发布在服务器上则需要在tomcat/lib中加入mysql-connector-java-x.x.xx-bin.jar的依赖包。