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

前端 未结 10 1249
青春惊慌失措
青春惊慌失措 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条回答
  •  旧时难觅i
    2021-02-02 09:24

    I faced a similar issue when I upgraded the Java version in my server to 11 from 8.

    The spring boot started supporting Java 11 from 2.1 and onwards. So make sure your project's dependencies are also updated accordingly. This is relevant for this answer as SpringBoot also influence MySQL connector, Hibernate core, and other dependencies.

    The inability to connect to DB was resulting in some more NoClassDefFoundErrors. So make sure you solve this first before looking into other errors.

    An example pom dependency for the SpringBoot starter

    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.12.RELEASE
        
    
    

    Hope this helps someone.

提交回复
热议问题