目录

Mysql SSLException Error

错误

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

原因

开启了userSSL

解决

在连接字符串后面拼接?useSSL=false

1
2
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.url=jdbc:mysql://localhost:3306/test?useSSL=false