首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

hibernate 配备c3p0

2012-11-05 
hibernate 配置c3p0!-- c3p0 configuration --??????? property namehibernate.connection.provider_

hibernate 配置c3p0

<!-- c3p0 configuration -->
??????? <property name="hibernate.connection.provider_class">
??????? ??? org.hibernate.connection.C3P0ConnectionProvider
??????? </property>

??????? <property name="hibernate.c3p0.max_size">20</property>

??????? <property name="hibernate.c3p0.min_size">5</property>

??????? <property name="hibernate.c3p0.timeout">120</property>

??????? <property name="hibernate.c3p0.max_statements">100</property>

??????? <property name="hibernate.c3p0.idle_test_period">120</property>

??????? <property name="hibernate.c3p0.acquire_increment">2</property>

?

注意需要将c3p0的jar包添加到build path中。

热点排行