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! 特殊情况

,就去看了下查看tomcat 日志

Connections could not be acquired from the underlying database! 特殊情况

发现mysql的用户名不是项目中使用的,历经周折终于找到问题所在


配置数据源时用来存储mysql用户名的键user与系统某个配置可能冲突


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! 特殊情况Connections could not be acquired from the underlying database! 特殊情况

这样错误就解决了