javax.net.ssl.SSLException MESSAGE: closing inbound before receiving peer‘s close_notify
生活随笔
收集整理的這篇文章主要介紹了
javax.net.ssl.SSLException MESSAGE: closing inbound before receiving peer‘s close_notify
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1. 問(wèn)題描述:
** BEGIN NESTED EXCEPTION ** javax.net.ssl.SSLException MESSAGE: closing inbound before receiving peer's close_notifySTACKTRACE:javax.net.ssl.SSLException: closing inbound before receiving peer's close_notifyat sun.security.ssl.Alert.createSSLException(Alert.java:133)at sun.security.ssl.Alert.createSSLException(Alert.java:117)at sun.security.ssl.TransportContext.fatal(TransportContext.java:314)at sun.security.ssl.TransportContext.fatal(TransportContext.java:270)at sun.security.ssl.TransportContext.fatal(TransportContext.java:261)at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:656)at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:635)at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:2246)at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4237)at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1465)at com.iteima.jdbc.JdbcDemo1.main(JdbcDemo1.java:42)** END NESTED EXCEPTION **2.解決方法:
將設(shè)置useSSL為false
jdbc:mysql://localhost:3306/eesy?serverTimezone=GMT%2B8&useSSL=false注意 :若配置文件是xml格式,xml文件中&是被禁止的,需要用到它的轉(zhuǎn)義字符"&"
jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8&useSSL=false參考文獻(xiàn):
https://blog.csdn.net/qq_38892496/article/details/89818175
感謝樓主分享!
總結(jié)
以上是生活随笔為你收集整理的javax.net.ssl.SSLException MESSAGE: closing inbound before receiving peer‘s close_notify的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Pycharm官网下载安装
- 下一篇: 因子分析模型 - 案例按步骤详解 - (