String url ="jdbc:mysql://localhost:3306/sb?useSSL=false";
String user ="root";
String password ="123456";
Connection conn = DriverManager.getConnection(url,user,password);
在连接的数据库名字后添加?useSSL=false即可
String url ="jdbc:mysql://localhost:3306/sb?useSSL=false";
String user ="root";
String password ="123456";
Connection conn = DriverManager.getConnection(url,user,password);
在连接的数据库名字后添加?useSSL=false即可