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 java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
at
只需要在数据库配置文件中添加上&useSSL=false即可
若在使用Maven编译项目时报错:
不再支持源选项 5。请使用 6 或更高版本。
不再支持目标选项 1.5。请使用 1.6 或更高版本。
直接在pom.xml中添加上maven编译的jdk版本

本文探讨了在Java应用程序中遇到的SSL连接异常问题,特别是`javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify`。解决方案是在数据库配置文件中添加`useSSL=false`来规避SSL验证。此外,还提到了在使用Maven编译项目时遇到的源码和目标版本不兼容问题,解决方法是在pom.xml中指定更高的JDK版本进行编译。
685

被折叠的 条评论
为什么被折叠?



