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