报错:com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
解决方案:看一下application.yml文件里面连接数据库时的命令有没有出错,出现这种错误很有可能就是application.yml配置文件里面连接数据库的指令写错。