MyBatis使用MySQL8.0+时执行查询语句时会报错:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
出现这种情况,一般是因为在连接数据库的url中加入了useSSL=true,将其修改为useSSL=false即可。