Public Key Retrieval is not allowed解决方法

AllowPublicKeyRetrieval=True可能允许恶意代理执行MITM攻击以获取明文密码,因此它在默认情况下为False,必须显式启用。

配置mysql的url时 加上 

&allowPublicKeyRetrieval=true

附 完整 url

url: jdbc:mysql://localhost:3306/szf?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true

猜你喜欢

转载自blog.csdn.net/m0_58823014/article/details/130619515