com.mysql.cj.jdbc.driver'的配置连接如下:
jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://192.168.1.99:3306/root?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false
jdbc.username=root
jdbc.password=root
jdbc.driver=com.mysql.cj.jdbc.Driver jdbc.url=jdbc:mysql://192.168.1.99:3306/root?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false 中root是您的数据库名称:注意指定时区serverTimezone=UTC,不然还会报错:Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.