原因
报错Cannot resolve com.mysq.jdbc.Connection.ping method
数据库连接池的配置和之前的配置不大一样
之前的配置是driver 连接池加载的是driverClassName
解决
- 重新配置properties文件
driverClassName = com.mysql.cj.jdbc.Driver
url = jdbc:mysql://localhost:3306/zzbmysql?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&useSSL=false
之前是
driverClassName = com.mysql.cj.jdbc.Driver
url = jdbc:mysql://localhost:3306/zzbmysql?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&useSSL=false