解決錯誤: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錯誤:

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM