Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/380.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java C3p0属性对spring/hibernate应用程序的影响?_Java_Spring_Hibernate - Fatal编程技术网

Java C3p0属性对spring/hibernate应用程序的影响?

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

我将为连接池配置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 pool
idleConnectionTestPeriod :
我的理解正确吗


谢谢

这些设置控制C3P0如何测试连接超时。例如,我通常使用“select1;”来测试MySQL连接。还有其他方法可以测试连接,其中一些选择会影响性能,因此我建议阅读此处提供的文档:

这些设置控制C3P0如何测试连接超时。例如,我通常使用“select1;”来测试MySQL连接。还有其他方法来测试连接,其中一些选择对性能有影响,因此我建议阅读此处提供的文档: