当前位置:   article > 正文

JDBC连接异常_exception during pool initialization

exception during pool initialization

报了多个异常,没给原因,就是提示jdbc连接不上

Exception during pool initialization.

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.

Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection;

解决方案:

在url携带参数后面添加:createDatabaseIfNotExist=true&useSSL=false

原理暂时不懂,待更新

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/159711
推荐阅读
相关标签
  

闽ICP备14008679号