在yml文件中配置好数据源之后启动项目,测试登录操作,系统无法登录,用户名或密码错误,控制台报错如下:
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
项目无法连接数据库,检查数据库并无异常,查过资料后在yml文件的数据源配置中 url路径后添加&useSSL=false即可解决。