Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); DriverManager.registerDriver(new com.mysql.jdbc.Driver());System.setProperty("jdbc.drivers", "com.mysql.jdbc.Driver");
来源: http://www.bubuko.com/infodetail-2532562.html