在使用 MySQL 8.* 时重启应用后提示
com.mysql.jdbc.exceptions.jdbc4.mysqlnontransientconnectionexception: public key retrieval is not allowed
解决方法是在连接后面添加 allowPublicKeyRetrieval=true
参考文章:MySQL 8.0 Public Key Retrieval is not allowed 错误的解决方法_呜呜呜啦啦啦的博客-CSDN博客_allowpublickeyretrieval=true