Java C3p0属性对spring/hibernate应用程序的影响?
我将为连接池配置c3Po配置。以下属性是什么意思Java C3p0属性对spring/hibernate应用程序的影响?,java,spring,hibernate,Java,Spring,Hibernate,我将为连接池配置c3Po配置。以下属性是什么意思 preferredTestQuery : query to test the connection testConnectionOnCheckin : above query is executed when connection is returned back to pool testConnectionOnCheckout : above query is executed when connection is taken from po
preferredTestQuery : query to test the connection
testConnectionOnCheckin : above query is executed when connection is returned back to pool
testConnectionOnCheckout : above query is executed when connection is taken from pool
idleConnectionTestPeriod :
我的理解正确吗
谢谢 这些设置控制C3P0如何测试连接超时。例如,我通常使用“select1;”来测试MySQL连接。还有其他方法可以测试连接,其中一些选择会影响性能,因此我建议阅读此处提供的文档:这些设置控制C3P0如何测试连接超时。例如,我通常使用“select1;”来测试MySQL连接。还有其他方法来测试连接,其中一些选择对性能有影响,因此我建议阅读此处提供的文档: