问题
Mon Sep 06 14:39:39 CST 2021 WARN: Caught while disconnecting... EXCEPTION STACK TRACE: ** BEGIN NESTED EXCEPTION ** javax.net.ssl.SSLException MESSAGE: closing inbound before receiving peer's close_notify STACKTRACE: javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify at 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:311) at sun.security.ssl.TransportContext.fatal(TransportContext.java:267) at sun.security.ssl.TransportContext.fatal(TransportContext.java:258) at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:637) at sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:616) 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.alibaba.druid.util.JdbcUtils.close(JdbcUtils.java:73) at com.alibaba.druid.pool.DruidDataSource.shrink(DruidDataSource.java:2797) at com.alibaba.druid.pool.DruidDataSource$DestroyTask.run(DruidDataSource.java:2562) at com.alibaba.druid.pool.DruidDataSource$DestroyConnectionThread.run(DruidDataSource.java:2549) ** END NESTED EXCEPTION **
解决
最常见解决方式:
useSSL=false
jdbc:mysql://localhost:3306/数据库名称?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false