在开发项目过程中使用 Mybatis 连接数据库时抛出了 Public Key Retrieval is not allowed 异常,提出解决方案
url: jdbc:mysql://localhost:3306/${databaseName}?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai&useSSL=false
在项目 application 文件中 database.url 添加 allowPublicKeyRetrieval=true&useSSL=false