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

在此记录一下,我通过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产生的问题

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2021-10-18
  • 2021-08-23
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-08-17
猜你喜欢
  • 2021-08-26
  • 2021-11-20
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案