摘要:
今天在项目中看到一段代码,Connection conn = null; ResultSet rs = null; PreparedStatement pss = null; try { conn = dataSource.getConnection(USERID,PASSWORD); pss = conn.prepareStatement(sql); rs = pss.executeQuery(); pss.close(); conn.close(); } catch (Throwable t) { // If i reach this spot, I blew a... 阅读全文