出现 Public Key Retrieval is not allowed 报错。 最简单的办法,在JDBC后面添加语句 allowPublicKeyRetrieval=true 立马解决。 记录一下这个问题。