在项目启动连接mysql的时候,日志出现如下警告:
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.
解决方法:在连接mysql的url中加上useSSL=false,例如
jdbc:mysql://127.0.0.1:3306/myDb?useUnicode=true&characterEncoding=UTF-8&useSSL=false