jdbc新旧两个版本对比
1.旧版本,MySQL Connector/J 5.x 版本的连接方式:
url = jdbc:mysql://localhost:3306/user?useUnicode=true&characterEncoding=utf8
driver = com.mysql.jdbc.Driver
2、MySQL 8.x新版本,MySQL Connector/J 6.x之后 的连接方式:
url = jdbc:mysql://localhost:3306/user?serverTimezone=UTC&characterEncoding=utf8&useUnicode=true&useSSL=false
drive = com.mysql.cj.jdbc.Driver