public interface ConnectionHolder
Connection
获取和关闭Modifier and Type | Method and Description |
---|---|
void |
closeConnection(Connection conn)
关闭连接
自定义关闭连接有利于自定义回收连接机制,或者不关闭 |
Connection |
getConnection()
获得链接。
|
Connection getConnection() throws DbException
Connection
DbException
- 连接获取异常void closeConnection(Connection conn)
conn
- 连接 Connection
Copyright © 2025. All rights reserved.