**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
原因還沒找到