项目场景:
在学习狂神的SSM整合时出现了一下错误
问题描述
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!] with root cause
java.sql.SQLException: Access denied for user ‘ASUS’@‘localhost’ (using password: YES)
原因分析:
是因为c3p0连接池规范导致的问题
解决方案:
将数据库配置文件的账号和密码添加一个jdbc的前缀即可
吃一堑长一智