Establishing SSL connection without server s identity verification is not recommended

Springboot-Mybatis 連接數據庫

好久沒用Springboot,今兒個用了下,在搭建數據庫的時候發現:

  • log框中提示:
Wed Jun 03 23:41:30 CST 2020 WARN: Establishing SSL connection without server's identity verification is 
not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be 
established by default if explicit option isn't set. For compliance with existing applications not 
using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable 
SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification
  • 在mysql5.多版本開始就不建議顯示SSL?如果沒有設置顯式選項,則必須在默認情況下建立SSL連接,這裏提示說,如果禁用,或者按它說的驗證身份,由於還處於初步開發階段,因此我選擇禁用
  • 在這裏插入圖片描述
  • 然後警告就沒了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章