hibernate default connection pooling

后端 未结 3 1493
感情败类
感情败类 2020-12-18 20:48

Does Hibernate use connection pool by default? If so what is the default value for *connection.pool_size*? Doesn\'t it conflicts with *hibernate.connection.release_mode*? Is

3条回答
  •  無奈伤痛
    2020-12-18 21:29

    I found no documentation about Hibernate default values for connection pool, so I looked in the source code and found (class DriverManagerConnectionProviderImpl in hibernate-core-4.3.8.Final):

    hibernate.connection.initial_pool_size = 1;
    hibernate.connection.min_pool_size = 1;
    hibernate.connection.pool_size = 20;
    hibernate.connection.pool_validation_interval = 30;
    hibernate.connection.autocommit = false;
    

提交回复
热议问题