在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