- Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
- 简单来说就是jdbc连接数据库的时候发生错误了
因为这里的连接池用的是c3p0的连接池,properties文件里的参数名不能和连接池的这个参数名一样,否则就报错
代码- 连接池
- db.properties
driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/dbName myUsername=root myPassword=root
`



