项目启动中如果遇到如下错误:Servlet.service() for servlet [front] in conte旌忭檀挢xt with path [] threw exception [Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!] with root causecom.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.请参照如下解决方案

2、点击服务,查找Mysql后台服务

3、可以看到当前服务并不有启动,右击选择【启动】


2、执行命令show processlist,查看当前连接池中的连接数,将些连接数与洧粽袄淖配置文件中配置的连接数作比较,如果连接数超过配置中配置的最大限制,则需要将配置文件中的连接数设置大些,或者手动关闭不需要的连接进程。
