public Connection getConnection() throws SQLException,InstantiationException,IllegalAccessException,ClassNotFoundException{ Connection conn = null; //加载数据库驱动 Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance(); //数据库连接url String ur