說(shuō)明:?jiǎn)?dòng)一些微服務(wù)后,一直在報(bào)下面這個(gè)錯(cuò)誤;
com.microsoft.sqlserver.jdbc.SQLServerException: 驅(qū)動(dòng)程序無(wú)法通過(guò)使用安全套接字層(SSL)加密與 SQL Server 建立安全連接。錯(cuò)誤:“The server selected protocol version TLS10 is not accepted by client preferences [TLS12]”。 ClientConnectionId:753383a4-ac2a-4a8c-9a14-bbf2695aab48
Caused by: javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS12]
解決:找到j(luò)dk下的jre\lib\security
目錄,打開(kāi)java.security
文件,搜索jdk.tls.disabledAlgorithms
,去掉后面的TLSv1, TLSv1.1和3DES_EDE_CBC,注意逗號(hào)修改完不要缺失。
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-732936.html
應(yīng)該是jdk8獨(dú)有的問(wèn)題,高版本的jdk沒(méi)有出現(xiàn)過(guò);文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-732936.html
到了這里,關(guān)于啟動(dòng)微服務(wù),提示驅(qū)動(dòng)程序無(wú)法通過(guò)使用安全套接字層(SSL)加密與 SQL Server 建立安全連接的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!