Path does not chain with any of the trust anchors
发布日期:2021-05-10 15:43:10 浏览次数:14 分类:精选文章

本文共 1570 字,大约阅读时间需要 5 分钟。

db.properties������������

# ���������������
driverClassName=com.mysql.Driver
url=jdbc:mysql://127.0.0.1:3306/aaa?useUnicode=true&characterEncoding=utf8&useSSL=true
username=root
password=123123
# ������������
initialSize=5
maxActive=20
minIdle=5
maxIdle=10
filters=stat,wall,log4j

������������

Caused by: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:154)
at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:80)
at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
at com.mysql.jdbc.ExportControlled$X509TrustManagerWrapper.checkServerTrusted(ExportControlled.java:295)
... 36 more
ERROR [Druid-ConnectionPool-Create-652211881] - create connection SQLException, url: jdbc:mysql://127.0.0.1:3306/jin1?useUnicode=true&characterEncoding=utf8&useSSL=true, errorCode 0, state 08S01
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

������������

    # ������������������useSSL������
url=jdbc:mysql://127.0.0.1:3306/aaa?useUnicode=true&characterEncoding=utf8&useSSL=true
# ���������������useSSL���������������false
url=jdbc:mysql://127.0.0.1:3306/aaa?useUnicode=true&characterEncoding=utf8&useSSL=false

���������������

  • ������������������������������������useSSL=true
  • ������������useSSL���������������false
上一篇:Unknown database ‘modd‘
下一篇:使用递归搜索本地电脑文件

发表评论

最新留言

不错!
[***.144.177.141]2025年04月08日 05时57分57秒