org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider]

从hibernate3升级到4应该会遇到

应该添加引用

      <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-c3p0 -->
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-c3p0</artifactId>
            <version>4.3.11.Final</version>
        </dependency>

因为这个包,在h4分出来了

猜你喜欢

转载自www.cnblogs.com/jnhs/p/11393759.html