在ssm框架測試中解決javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException


在單元測試發現causeBy:javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException
經發現是db.properties,SSL=true的錯誤,刪掉即可
願代碼
jdbc.url=jdbc:mysql://localhost:3306/ssmbuild?useSSL=true&useUnicode=true&characterEncoding=utf8

改掉之后:
jdbc.url=jdbc:mysql://localhost:3306/ssmbuild?useUnicode=true&characterEncoding=utf8

最后成功解決


免責聲明!

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



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