hibernate配置C3P0连接池出现could not find org.hibernate.connection.C3P0Connecti问题
错误:WARN ConnectionProviderFactory:152 - c3p0 properties is specificed, but could not find org.hibernate.connection.C3P0ConnectionProvider from the classpath, these properties are going to be ignored.
原因及解决方法:
hibernate只从3.3版本以后,org.hibernate.connection.C3P0ConnectionProvider移动到hibernate-c3p0包中,所以你需要导入hibernate-c3p0这个包才能使用c3p0,
或者在maven工程的pom文件添加(此处用的hibernate版本是4.3.5.Final,添加此包需要根据自己项目中使用的hibernate版本来选择)
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>4.3.5.Final</version>
</dependency>