1.
Caused by: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust
出现上述异常将 useSSL=ture 改为 useSSL=false
如下图:
jdbc.url=jdbc:mysql://localhost:3306/sams?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
2.
Caused by: java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not all
出现上述异常在数据库连接 url 中添加 allowPublicKeyRetrieval=true
如下图:
jdbc.url=jdbc:mysql://localhost:3306/sams?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai