Hibernate supports C3P0 connection pooling
Jar packages that need to import c3p0
<!--Configuring the connection Driver management class--><property Name= "Hibernate.connection.provider_class" > org.hibernate.connection.c3p0connectionprovider</property><!--Configure Connection pool parameter information--><!--minimum number of links-->< Property Name= "Hibernate.c3p0.min_size" >2</property><!--maximum number of links--><property name= " Hibernate.c3p0.max_size ">4</property><!--Time Out--><property name=" Hibernate.c3p0.timeout "> 5000</property><!--Maximum number of execution commands--><property name= "hibernate.c3p0.max_statements" >10</property ><!--Idle test time--><property name= "Hibernate.c3p0.idle_test_period" >30000</property><!-- The number of times each increment is not enough--><property name= "Hibernate.c3p0.acquire_increment" >2</property>
() Hibernate for Java Web uses-C3P0 connection pool configuration