You need either to explicitly disable SSL by setting useSSL=false 红色警告

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.

项目启动时候出现了这么一个红色的警告 

You need either to explicitly disable SSL by setting useSSL=false 红色警告

这是什么原因呢,来看看这段话的意思吧。

在没有服务器身份验证的情况下建立SSL连接是不推荐的。根据MySQL 5.5.45、5.6.26和5.7.6的要求,如果未设置显式选项,则必须默认建立SSL连接。对于不使用SSL的现有应用程序,verifyserver证书属性设置为‘false’。  

说是根据mysql的版本要求要建立ssl连接。没有默认设置就会出现这么一个警告。

解决方法: 

You need either to explicitly disable SSL by setting useSSL=false 红色警告

在你的 url: jdbc:mysql://127.0.0.1:3306/cloud?serverTimezone=Asia/Shanghai&useSSL=false 

后面添加 useSSL=false 就可以了