AMT-Project / project_1

0 stars 1 forks source link

Creating and closing resources in JDBC (pooling) #39

Closed bonzonlu closed 4 years ago

bonzonlu commented 4 years ago

Connection con = dataSource.getConnection(); ... finally { if(prepStmt != null) { ps.close(); } if(con != null) { con.close(); } }