如何解决 Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
的问题呢?
在配置和代码都没有任何问题的情况下 还是出现报错现象 可能就是数据库服务器连接有问题
解决该方法需要打开数据库服务器检查连接情况,建议重新连接
解决:
1. 第一步:
2. 第二步:
3. 第三步:
4. 重新启动项目 即可