<hibernate-configuration>
<session-factory>
<!-- property name="hibernate.connection.pool_size"></property -->
<property name="hibernate.connection.url">
jdbc:postgresql://210.83.214.173/xxxxx
</property>
<property name="hibernate.connection.driver_class">
org.postgresql.Driver
</property>
<property name="hibernate.connection.username">xxxxx</property>
<property name="hibernate.connection.password">xxxxx</property>
<property name="hibernate.dbcp.maxActive">50</property>
<property name="hibernate.dbcp.whenExhaustedAction">1</property>
<property name="hibernate.dbcp.maxWait">120000</property>
<property name="hibernate.dbcp.maxIdle">10</property>
<!-- dialect for PostgreSQL -->
<property name="dialect">
net.sf.hibernate.dialect.PostgreSQLDialect
</property>
<property name="hibernate.show_sql">true</property> <mapping resource="org/zg/pojo/FUser.hbm" />
</session-factory>
</hibernate-configuration>