解决Connections could not be acquired from the underlying database!的问题
2016-08-07 21:08
525 查看
Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
做Spring+Mybatis的项目,报错
jdbc.properies:
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/seckill
username=root
password=root
spring-dao.xml:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="${driver}"/>
<property name="jdbcUrl" value="${url}"/>
<property name="user" value="${username}"/>
<property name="password" value="${password}"/>
如果不用jdbc配置文件直接写就可以。
最后发现是username的问题,好像改个名就可以,比如:usernamex=root
<property name="user" value="${usernamex}"/>
相关文章推荐
- Connections could not be acquired from the underlying database问题解决
- 解决:Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database!
- 数据库连接问题之:Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database
- Connections could not be acquired from the underlying database!原因及解决办法
- 解决c3p0:Connections could not be acquired from the underlying database!
- Javaweb问题:Connections could not be acquired from the underlying database!
- Connections could not be acquired from the underlying database!异常解决
- 解决:Connections could not be acquired from the underlying database!
- JDBC出现这个错误的解决办法Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database!
- spring整合mybaits时Connections could not be acquired from the underlying database!异常解决
- 解决:Connections could not be acquired from the underlying database!
- 解决c3p0:Connections could not be acquired from the underlying database!
- Linux磁盘空间满导致的Connections could not be acquired from the underlying database!问题
- 解决:Connections could not be acquired from the underlying database!
- 连接数据库出现:Connections could not be acquired from the underlying database
- java.sql.SQLException: Connections could not be acquired from the underlying database!