关于这个错误的解释百度上有一大堆,关于解决方法找了很久才看到了个情况和自己一样的也解决了。
首先情况是在写MVC配置运行后,一直都显示有这个错
Fri Mar 30 14:55:35 CST 2018 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.
之前没有用mvc连接数据库的时候报这个错误直接在连接数据库地址后面加上useSSL=false就可以解决了
本来以为轻车熟路的我很熟练的在连接池后加上了useSSL=false,如下