完整异常世界上并没有完美的程序,但是我们并不因此而沮丧,因为写程序就是一个不断追求完美的过程。
-侯氏工坊
com.mysql.cj.exceptions.UnableToConnectException: Public Key Retrieval is no解决方案
- 在mysql的连接url中增加allowPublicKeyRetrieval=true
jdbc:mysql://127.0.0.1:3306/test?useUnicode=true &characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull &useSSL=false&allowPublicKeyRetrieval=true



