jar包与mysql版本不匹配 mysql-connector-java下载地址: http://mvnrepository.com/artifact/mysql/mysql-connector-java 下载后放入项目的lib文件夹下