简而言之: com.mysql.cj.jdbc.Driver 对应高版本mysql com.mysql.jdbc.Driver 是对应低版本mysql 分别是mysql-connector-java 5以下版本 或 6以上版本