当使用c3p0连接数据库时,配置信息都没有错误,但是出现了如下情况:
下列信息中有一行是java.lang.RuntimeException: java.sql.SQLException: Connections could not be acquired from the underlying database!
也就是连接数据库失败
D:\sofeware\JDK8\JDK8installer\bin\java.exe -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\sofeware\IntelliJ IDE\IntelliJ IDEA 2019.3.4\lib\idea_rt.jar=60323:D:\sofeware\IntelliJ IDE\IntelliJ IDEA 2019.3.4\bin" -Dfile.encoding=UTF-8 -classpath "D:\sofeware\IntelliJ IDE\IntelliJ IDEA 2019.3.4\lib\idea_rt.jar;D:\sofeware\IntelliJ IDE\IntelliJ IDEA 2019.3.4\plugins\junit\lib\junit5-rt.jar;D:\sofeware\IntelliJ IDE\IntelliJ IDEA 2019.3.4\plugins\junit\lib\junit-rt.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\charsets.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\deploy.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\access-bridge-64.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\cldrdata.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\dnsns.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\jaccess.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\jfxrt.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\localedata.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\nashorn.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\sunec.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\sunjce_provider.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\sunmscapi.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\sunpkcs11.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\ext\zipfs.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\javaws.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\jce.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\jfr.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\jfxswt.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\jsse.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\management-agent.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\plugin.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\resources.jar;D:\sofeware\JDK8\JDK8installer\jre\lib\rt.jar;D:\sofeware\IntelliJIDEAProjects\day02_eesy_02xmlIoC\target\classes;D:\sofeware\apache_maven_repository\org\springframework\spring-context\5.0.2.RELEASE\spring-context-5.0.2.RELEASE.jar;D:\sofeware\apache_maven_repository\org\springframework\spring-aop\5.0.2.RELEASE\spring-aop-5.0.2.RELEASE.jar;D:\sofeware\apache_maven_repository\org\springframework\spring-beans\5.0.2.RELEASE\spring-beans-5.0.2.RELEASE.jar;D:\sofeware\apache_maven_repository\org\springframework\spring-core\5.0.2.RELEASE\spring-core-5.0.2.RELEASE.jar;D:\sofeware\apache_maven_repository\org\springframework\spring-jcl\5.0.2.RELEASE\spring-jcl-5.0.2.RELEASE.jar;D:\sofeware\apache_maven_repository\org\springframework\spring-expression\5.0.2.RELEASE\spring-expression-5.0.2.RELEASE.jar;D:\sofeware\apache_maven_repository\org\springframework\spring-test\5.0.2.RELEASE\spring-test-5.0.2.RELEASE.jar;D:\sofeware\apache_maven_repository\commons-dbutils\commons-dbutils\1.4\commons-dbutils-1.4.jar;D:\sofeware\apache_maven_repository\mysql\mysql-connector-java\5.1.6\mysql-connector-java-5.1.6.jar;D:\so