Fri Aug 31 13:55:02 CST 2018 WARN: Establishing SSL connection without server's identity verificatio

原先报错程序 Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/scott,"root", "123456");

更改后正确程序 Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/scott?useSSL=false", "root", "123456");

也可以使用如下 Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/scott?useUnicode=true&characterEncoding=utf-8&useSSL=false", "root", "123456");

猜你喜欢

转载自blog.csdn.net/weixin_42037760/article/details/82255337