JDBC連接數據庫的url設useSSL參數為true產生的問題


**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

原因還沒找到


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM