在连接数据库配置都没错, jar 包也有, 但是还是报
Could not create connection to database server. 错误, 那是因为 mysql8.0 版本的使用的数据库连接字符串不一样, 而且还对时区有要求, 引用下面的连接即可
- url: jdbc:MySQL://localhost:3306/hao?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
- driver: com.MySQL.cj.jdbc.Driver
来源: http://www.bubuko.com/infodetail-3609511.html