【Java】Java11连接数据库
java11后,驱动连接方式修改为如下:
jdbc.jdbcUrl=jdbc:mysql://localhost:3306/[数据库名]?useSSL=false&serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8
jdbc.driverClass=com.mysql.cj.jdbc.Driver
jdbc.user=root
jdbc.password=123456
java11后,驱动连接方式修改为如下:
jdbc.jdbcUrl=jdbc:mysql://localhost:3306/[数据库名]?useSSL=false&serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8
jdbc.driverClass=com.mysql.cj.jdbc.Driver
jdbc.user=root
jdbc.password=123456