idea2022.1 连sql server

报错:[08S01] 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]”。 ClientConnectionId:272392ee-1272-4622-928d-f8e0f9e1a335
The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12].

解决办法:修改文件C:\Program Files\JetBrains\IntelliJ IDEA 2022.1\jbr\conf\security\java.security

将:jdk.tls.disabledAlgorithms 中的TLSv1,3DES_EDE_CBC删除

测试数据库连接

DBMS: Microsoft SQL Server (ver. 10.50.1600)
Case sensitivity: plain=mixed, delimited=mixed
Driver: Microsoft JDBC Driver 10.2 for SQL Server (ver. 10.2.0.0, JDBC4.2)
Ping: 51 ms
SSL: no

TLSv1 was negotiated. Please update server and client to use TLSv1.2 at minimum.

解决办法:idea中Project Structure中的SDKs选jdk18,

  • 2
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值