其他分享
首页 > 其他分享> > 解决Connections could not be acquired from the underlying database!

解决Connections could not be acquired from the underlying database!

作者:互联网

之前一直认为是代码错了,后来网上查资料,发现可能是C3P0和mysql的版本不匹配导致的,更改完C3P0的版本 以后就好了,更改完的版本如下:

<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.48</version>
</dependency>
<dependency>
    <groupId>c3p0</groupId>
    <artifactId>c3p0</artifactId>
    <version>0.9.1.2</version>
</dependency>

标签:0.9,database,acquired,could,更改,c3p0,C3P0,版本,mysql
来源: https://blog.csdn.net/yuyuyuzhen/article/details/119491716