Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论是JdbcDaoSupport#getConnection()新的连接还是只是从池中获取连接?
JdbcDaoSupport#getConnection()
它返回一个新的文档状态,考虑使用连接池,看看这里
另一个相关线程
您应该调用releaseConnection(),如果需要,它会在里面关闭连接。