如何修复客户端首选项[TLS12]不接受服务器选择的协议版本TLS10

我想使用 sql server 数据库运行 spring boot 应用程序,但是当我运行它时,出现以下错误:

com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol version TLS10 is not accepted by client preferences [TLS12]". ClientConnectionId:73ea4fa4-e772-4fd7-90f5-d617aec091f2
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:2924) ~[mssql-jdbc-7.4.1.jre8.jar:na]
    at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1881) ~[mssql-jdbc-7.4.1.jre8.jar:na]

以上是如何修复客户端首选项[TLS12]不接受服务器选择的协议版本TLS10的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>