日期:2014-05-16 浏览次数:20380 次
<property name="connection.url"> jdbc:mysql://xxxxxxxxx:3306/etolweb </property> <property name="show_sql">false</property> <property name="format_sql">true</property> <property name="max_fetch_depth">1</property> <property name="use_outer_join">true</property> <property name="default_batch_fetch_size">30</property> <property name="transaction.factory_class"> org.hibernate.transaction.JDBCTransactionFactory </property> <!-- configuration pool via c3p0--> <property name="c3p0.acquire_increment">10</property> <property name="c3p0.idle_test_period">100</property> <property name="c3p0.min_size">10</property> <property name="c3p0.max_size">3000</property> <property name="c3p0.time_out">1200</property> <property name="c3p0.max_statement">5000</property> <property name="jdbc.batch_size">30</property> <property name="cache.use_second_level_cache">true</property> <property name="cache.provider_class"> org.hibernate.cache.EhCacheProvider </property> <property name="cache.use_query_cache">true</property> <property name="cache.use_query_cache">true</property>