Class.forName("oracle.jdbc.OracleDriver");
String url = "jdbc:oracle:thin:@localhost:1521:orcl";
Class.forName("com.mysql.jdbc.Driver");
jdbc:mysql://localhost:3306/databasename
转载于:https://blog.51cto.com/tzxvae/1434117
Class.forName("oracle.jdbc.OracleDriver");
String url = "jdbc:oracle:thin:@localhost:1521:orcl";
Class.forName("com.mysql.jdbc.Driver");
jdbc:mysql://localhost:3306/databasename
转载于:https://blog.51cto.com/tzxvae/1434117