SpringBoot报错-Could not create connection to database server. Attempted reconnect 3 times. Giving up.

SpringBoot报错-Could not create connection to database server. Attempted reconnect 3 times. Giving up.

——墨问苍生



无法连接数据库,一开始以为是yml的配置有问题,反复检查后发现是pom.xml文件的问题

箭头指着的版本号要改为和Mysql版本一样的

原文地址:https://www.cnblogs.com/hellkey/p/13962251.html