参考连接:https://blog.csdn.net/qq_42816401/article/details/91303134 在连接设置的驱动属性里,设置allowPublicKeyRetrieval的值为TRUE即可。