警告內容:
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.
翻譯后:
不建議在沒有服務器身份驗證的情況下建立SSL連接。 根據MySQL 5.5.45 +,5.6.26 +和5.7.6+的要求,如果未設置顯式選項,則默認情況下必須建立SSL連接。 為了與不使用SSL的現有應用程序兼容,將verifyServerCertificate屬性設置為'false'。 您需要通過設置useSSL = false顯式禁用SSL,或者設置useSSL = true並提供信任庫以進行服務器證書驗證。
解決方法:在url的最后添加“?useSSL=false”