标签:
Initial SessionFactory creation failed.org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider]Hibernate‘s own connection pooling algorithm is, however, quite rudimentary. It is intended to help you get started and is not intended for use in a production system, or even for performance testing. You should use a third party pool for best performance and stability. Just replace thehibernate.connection.pool_size property with connection pool specific settings. This will turn off Hibernate‘s internal pool. For example, you might like to use c3p0.
C3P0 is an open source JDBC connection pool distributed along with Hibernate in the lib
directory. Hibernate will use its org.hibernate.connection.C3P0ConnectionProvider
for connection pooling if you sethibernate.c3p0.* properties. If you would like to use Proxool, refer to the packagedhibernate.properties
and the Hibernate web site for more information.
意思是,只需要将 hibernate.connection.pool_size替换为
Hibernate4.3.8.Final在配置c3p0时,报错
标签:
原文地址:http://www.cnblogs.com/homer3000/p/4439703.html