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版本一样的

 

posted @ 2020-11-12 09:38  墨问苍生  阅读(555)  评论(0编辑  收藏  举报