JDBC链接数据库MySQL 8.0 Public Key Retrieval is not allowed 错误的解决方法

现象

Mybatis和Spring框架整合过程中报
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed

解决办法

在连接URL后面添加
allowPublicKeyRetrieval=true

猜你喜欢

转载自www.cnblogs.com/liuyishi/p/11429270.html