日期:2014-05-16 浏览次数:20333 次
<property name="hibernateProperties"> <props> <prop key="hibernate.connection.provider_class">org.hibernate.connection.ProxoolConnectionProvider</prop> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">false</prop> <prop key="hibernate.validator.apply_to_ddl">false</prop> <prop key="javax.persistence.validation.mode">none</prop> <prop key="hibernate.proxool.xml">proxool.xml</prop> <prop key="hibernate.proxool.pool_alias">dbPool</prop> <!-- 解决sleep连接过多问题 --> [b]<prop key="hibernate.connection.release_mode">auto</prop> [/b] <prop key="hibernate.connection.autocommit">true</prop> </props> </property>