Skip to content

Commit

Permalink
refactor: JdbcTemplate 커넥션 해제 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
zillionme committed Oct 10, 2023
1 parent 8cf6bda commit 2bfef4b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ private <T> T execute(final String sql, final Object[] args, final PreparedState
} catch (SQLException e) {
log.error(e.getMessage(), e);
throw new DataAccessException(e);
} finally {
DataSourceUtils.releaseConnection(conn, dataSource);
}
}
}

0 comments on commit 2bfef4b

Please sign in to comment.