java-sec-code
java-sec-code copied to clipboard
docker 环境mysql 连接 报错 Public Key Retrieval is not allowed
Public Key Retrieval is not allowed
Me too.
1、修改pom.xml中mysql版本与实际版本一致。 2、修改application.properties里面jdbc为allowPublicKeyRetrieval=true,再加上characterEncoding=utf8
本地测试可修改application.properties里的AllowPublicKeyRetrieval为allowPublicKeyRetrieval。 docker环境我找时间重新发布一下。