項目啟動報如下錯誤:
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在某博的評論提到的解決辦法!