try{
if(conn !=null&&!conn.isClosed()){
conn.isClosed();
}
}catch(SQLException e){
e.printStackTrace();
}
}
public static void closeResultSet(ResultSet res){
try {
if (res!=null) {
res.close();
res=null;
}
} catch (SQLException e) {
e.printStackTrace();
}
}
}
整理为word格式

