admin 管理员组

文章数量: 1087649

Spring Boot警告:TLSv1 was negotiated.Please update server and client to use TLSv1.2 at minimum

问题描述

Spring Boot 连接 SQL Server 数据库,启动项目后控制台警告如下:

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

解决方案

不处理好像也没什么问题
非要解决似乎要从服务器上做调整,没仔细研究,因为我本机的 SQL 2019 是没问题的,服务器可能版本低。
非要解决还有个方法,此次出现警告是使用的 8.4.x 的驱动,降低 MSSQL 驱动版本至 8.2.x 却可解决。

runtimeOnly group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '8.2.2.jre11'

参考资料

🌍/
🌍

本文标签: Spring Boot警告TLSv1 was negotiatedPlease update server and client to use TLSv12 at minimum