错误
Fri Jul 31 15:46:33 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. |
原因
项目中使用的驱动版本与Mysql的版本不一致,Mysql5.5之后的版本对安全性的要求更高,默认采用的是SSL连接,而驱动在连接时并没有相关配置,所以会有警告提示,但并不影响使用。 |
解决方法
在person后面加上 ?userSSL =false