相关疑难解决方法(0)

Hibernate配置连接池大小

为什么在hibernate配置文件中设置10用于连接池?size = 1是内置尺寸的.为什么需要增加尺寸?

<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

    <session-factory>
     ....

       <property name="connection.pool_size">10</property>

     ....
    </session-factory>

</hibernate-configuration>
Run Code Online (Sandbox Code Playgroud)

hibernate

16
推荐指数
1
解决办法
5万
查看次数

标签 统计

hibernate ×1