package test; import java.sql.ResultSet; import java.sql.SQLException; s import javabean.Base; public class Test { public static void main(String[] args) throws ClassNotFoundException, SQLException { // Connection connection = Base.getConnection(); // String sql = "select * from system_manager"; // PreparedStatement pstmt = null;//(PreparedStatement) connect.prepareStatement(sql); // // ResultSet resultSet = null; // resultSet = Base.executequery(connection, pstmt, resultSet, sql, null); // while(resultSet.next()) { // System.out.println(resultSet.getString("username")); // } // Base.closeResource(connection, pstmt, resultSet); // resultSet.close(); // System.out.println(resultSet); //System.out.println(resultSet); } }