Sun Apr 08 09:19:50 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.
根据网上搜的一些结果,我发现是数据库连接时的代码有误
String url = "jdbc:mysql://localhost:3306/jkxystudent?useUnicode=true&characterEncoding=utf-8";
修改后是
String url = "jdbc:mysql://localhost:3306/jkxystudent?useUnicode=true&characterEncoding=utf-8&useSSL=false";
useUnicode=true&characterEncoding=utf-8这一段是说编码格式为utf-8,自己可以设置eclipse的默认编码格式;后面一句是mysql连接方式的问题.其实上面的问题也提示了是useSSL没设置的问题