JoyChou93 / java-sec-code

Java web common vulnerabilities and security code which is base on springboot and spring security
2.42k stars 645 forks source link

docker 环境mysql 连接 报错 Public Key Retrieval is not allowed #25

Closed jax777 closed 1 year ago

jax777 commented 4 years ago

Public Key Retrieval is not allowed

FKK921 commented 2 years ago

Me too.

FKK921 commented 2 years ago

1、修改pom.xml中mysql版本与实际版本一致。 2、修改application.properties里面jdbc为allowPublicKeyRetrieval=true,再加上characterEncoding=utf8

JoyChou93 commented 1 year ago

本地测试可修改application.properties里的AllowPublicKeyRetrieval为allowPublicKeyRetrieval。 docker环境我找时间重新发布一下。