升级mybatisplus到3.5.3.1出现Public Key Retrieval is not allowed的问题

报错信息

 原因:mysql8以上版本需要建立SSL连接,默认useSSL=true

解决方法有两种

1、添加allowPublicKeyRetrieval=true(不推荐)

 2、删除useSSL=false或者设置useSSL=true(推荐)

猜你喜欢

转载自blog.csdn.net/crazy1013/article/details/127652098