项目启动报如下错误:

The server selected protocol version TLS10 is not accepted by client preferences [TLS12]

The driver could not establish a secune connection to SQL Server by using Secune Sockets Layer (SSL) encryption.Error:The server selected protocol version TLS10 is not accepted by client preferences [TLS12]。

解决办法如下(亲测有效):

Java 8 是编辑 jre/lib/security/java.security 文件,找到 jdk.tls.disabledAlgorithms 配置项,将 TLSv1, TLSv1.1 删除即可。Java 11 是编辑 conf/security/java.security

作者的JDK版本是JDK1.8.0_301

感谢JasonLiao909在某博的评论提到的解决办法! 

posted on 2022-03-23 17:04  苟活之刍  阅读(1329)  评论(0)    收藏  举报