报错CommunicationsException: Communications link failure

在学习整合springboot+ jpa的时候,只写了个简单的例子,就报错CommunicationsException: Communications link failure,然后将连接数据库的
url=jdbc:mysql://localhost:3306/db_book?serverTimezone=GMT中的localhost改成127.0.0.1就不报错了,应该是框架不识别。

发布了64 篇原创文章 · 获赞 103 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/P_Doraemon/article/details/97267133