spring-framework / org.springframework.jdbc.support / JdbcUtils / closeConnection

closeConnection

open static fun closeConnection(@Nullable con: Connection): Unit

Close the given JDBC Connection and ignore any thrown exception. This is useful for typical finally blocks in manual JDBC code.

Parameters

con - the JDBC Connection to close (may be null)