首页 > 数据库技术 > 详细

JDBC连接数据库的url设useSSL参数为true产生的问题

时间:2020-04-12 23:08:26      阅读:416      评论:0      收藏:0      [点我收藏+]

在此记录一下,我通过JDBC连接MySQL数据库,当将连接数据库的url的useSSL参数设置为true时,就无法连接数据库,当设置为false时就可以正常连接

产生的异常信息是:

  Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

  javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors

   java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors

 

先记录一下,日后溯源。

JDBC连接数据库的url设useSSL参数为true产生的问题

原文:https://www.cnblogs.com/yxym2016/p/12687891.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!