解决错误:javax.net.ssl.SSLException MESSAGE: closing inbound before receiving peer's close_notify和The server time zone value ‘?й???’ is unrecognized
假如你在使用springboot,你想体验升级后的mysql8.0以上版本数据库,就需要修改对应的驱动版本,且在application.yml配置文件中,配置连接数据库的url时,加上useSSL=false和serverTimezone=GMT%2B8。格式如下:
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url:jdbc:mysql://localhost:3306/your_db_name?serverTimezone=GMT%2B8&useSSL=false
否则会报如下错误:
请同时在url后面加上:
&serverTimezone=GMT%2B8
否则可能还会出现出现The server time zone value ‘?й???’ is unrecognized错误: