SSM配置JDBC错误: cquisition Attempt Failed!!!

Posted 小鸣的网络日志

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SSM配置JDBC错误: cquisition Attempt Failed!!!相关的知识,希望对你有一定的参考价值。

异常:

警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@20ffa401
 -- Acquisition Attempt Failed!!! Clearing pending acquires. 
While trying to acquire a needed new resource,
we failed to succeed more than the maximum number of allowed acquisition attempts (3)
. Last acquisition attempt exception: 
java.sql.SQLException: Access denied for user \'xiaom\'@\'IP\' (using password: YES)

### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: 
Could not get JDBC Connection; 
nested exception is java.sql.SQLException: 
Connections could not be acquired from the underlying database!

发现问题

jdbc.properties文件之前的配置:

修改后:

先记下来, 后面有空具体看看原因

以上是关于SSM配置JDBC错误: cquisition Attempt Failed!!!的主要内容,如果未能解决你的问题,请参考以下文章

重温SSM框架系列11 - Mybatis快速入门(JDBC开发步骤,配置文件)

使用idea创建SSM项目时数据源配置异常

整合SSM遇到的错误,数据库连接失败

SSM衍生的配置文件

SSM框架搭建

SSM框架Druid连接池实现多数据源配置(已上线使用)