一次数据库连接失败 CertPathValidatorException: Path does not chain with any of the trust

    技术2022-07-17  75

    错误的初始是因为 数据库是数据库一直连接不上导致消息阻塞,后来发现是druid一直无法创建连接导致的

    debug发现错误信息

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

    最后修改

    数据库连接 useSSL=true 为 useSSL=false 就可以解决问题,

    mysql5.7新增的连接加密安全认证,我们测试库没开,所以一直报错。

    Processed: 0.008, SQL: 9