sqlserver2014連接JAVA: The server selected protocol version TLS10 is not accepted by client preferences [TLS12]



數據庫連接問題:The server selected protocol version TLS10 is not accepted by client preferences [TLS12]

jdk-8u291禁用TLS 1.0和1.1  我用的數據庫:SqlServer2014 

進入JDK找到\jre1.8.0_291\lib\security下的java.security,打開刪掉

jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
    DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
    include jdk.disabled.namedCurves

便可解決問題。

參考鏈接:https://blog.csdn.net/weixin_47180824/article/details/116236919


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM