弹簧连接池 [英] Spring Connection Pooling
本文介绍了弹簧连接池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我或指向我介绍解释如何在Spring中使用连接池的文档/教程吗?
Can someone tell me or point me to a document/tutorial that explains how to use connection pooling in Spring?
推荐答案
Spring不支持内置池.您应该使用如上所述的第三方池. DBCP和 c3p0 都像弹簧一样起作用.您需要做的就是在context.xml中定义数据源时,只需使用DBCP即可定义它.
Spring doesn't support inbuilt pooling. You should use a third party pool as mentioned above. DBCP and c3p0 both work like a charm with spring. All you need to do is when defining a datasource in your context.xml, just use DBCP to define it.
这篇关于弹簧连接池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文