1.Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
2riverManag. Der.registerDriver(new com.mysql.jdbc.Driver());
3.System.setProperty("jdbc.drivers", "com.mysql.jdbc.Driver");
1.Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
2riverManag. Der.registerDriver(new com.mysql.jdbc.Driver());
3.System.setProperty("jdbc.drivers", "com.mysql.jdbc.Driver");
转载于:https://my.oschina.net/u/3153067/blog/860982