我正在为我正在处理的项目解决连接超时问题。我们使用c3p0来管理连接池和hibernate作为orm工具。我们也使用弹簧。
要查找是否有任何未返回的连接,我在我的 c3p0 配置中将 debugUnreturnedConnectionStackTraces 设置为 true(不在 c3p0 属性中)。
还有什么我需要做的。我是否还必须向我的 lod4j.properties 添加任何内容,或者仅将 debugUnreturnedConnectionStackTraces 设置为 true 就足够了?
另外,我应该在 c3p0 属性中将 debugUnreturnedConnectionStackTraces 设置为 true 吗?
谢谢您的帮助