Intellij 的想法 javax.net.ssl.SSLHandshakeException:没有合适的协议协议被禁用或密码套件不合适

问题描述

IntelliJ idea 更新后,尝试连接数据库时出现异常。

javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).

解决方法

解决方案很简单。

数据库选项卡 → 数据源属性

enter image description here

→选择数据库→高级→启用TLSProtocols设置TLSv1.2。 enter image description here

,

第一步

enter image description here

步骤 2

enter image description here

数据库选项卡-> 属性-> 选择数据库-> 尝试Test Connection

编辑虚拟机选项:删除SSLv3、TLSv1、TLSv1.1、