com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
记一次springboot微服务启动时报数据库连接错误的解决
在启动springboot微服务时报错,具体是“com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure”
参考博文 https://blog.csdn.net/weixin_44116899/article/details/109219387 解决了问题。原因是默认情况下连接数据库时的useSSL=true
将连接数据库的url添加上useSSL=false即可。