【已解决】spring boot项目从mysql中获取数据候错误The driver has not received any packets from the server
- 经验分享
- 时间:2022-10-24 16:56
- 4336人已阅读
简介
springboot项目在连接mysql查询数据的时候,提示错误:Thedriverhasnotreceivedanypacketsfromtheserver沃日。为什么会出现这种情况呢?查看配置文件中,数据库链接配置:好像没问题,又好像有问题。把mysql:3308换成localhost:3308就可以了
🔔🔔🔔好消息!好消息!🔔🔔🔔
有需要的朋友👉:联系凯哥
spring boot项目在连接mysql查询数据的时候,提示错误:The driver has not received any packets from the server
沃日。为什么会出现这种情况呢?
查看配置文件中,数据库链接配置:
好像没问题,又好像有问题。
把mysql:3308换成localhost:3308就可以了