Spring Boot: Jdbc javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify

前端 未结 10 1236
青春惊慌失措
青春惊慌失措 2021-02-02 08:59

I am currently learning more about implementing JDBC and using databases in a Spring Boot webapp, and I encountered the following Stack Trace written in the bottom of the post.<

相关标签:
10条回答
  • 2021-02-02 09:37

    Try using the following URL. As they suggested use useSSL=false Also, Make sure to use <&amp> instead of just & when you have multiple properties defined in your URL.

    jdbc:mysql://localhost:3306/TestDB?serverTimezone=PST&amp;useSSL=false

    0 讨论(0)
  • 2021-02-02 09:39

    I was also facing the same issue

    But then i updated the mysql-connector-java version from 5.1.46 to 8.0.20 and by changing com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver it solved my issue

    0 讨论(0)
  • 2021-02-02 09:42

    My similary prolem is in spark, I solove the problem by down the java verion from 'openjdk version "1.8.0_275"' to 'openjdk version "1.8.0_265"', hope be use to you

    0 讨论(0)
  • 2021-02-02 09:43

    The SSL connection to the database is failing, try changing your datasource URL to:

    spring.datasource.url=jdbc:mysql://localhost:3306/employee_database?useSSL=false
    
    0 讨论(0)
提交回复
热议问题