Fork me on GitHub

java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors

出现这个错误是因为URL中出现了useSSL=true,只需要改成false即可。

jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&useSSL=true

 

posted @ 2020-02-24 17:01  秋夜雨巷  阅读(5574)  评论(1编辑  收藏  举报