c3p0出现了一场,每次都这样

五月 11, 2017 4:36:34 下午 com.mchange.v2.log.MLog
INFO: MLog clients using java 1.4+ standard logging.
五月 11, 2017 4:36:34 下午 com.mchange.v2.c3p0.C3P0Registry banner
INFO: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
五月 11, 2017 4:36:34 下午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 2rxmcq9n1wfqr40a71csj|c12241e, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2rxmcq9n1wfqr40a71csj|c12241e, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:///day19_1, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]

2个回答

是数据库连不上吗? 数据库服务端开没开? 日志没看到异常啊

qq_32269293
爪哇岛卖咖啡 谢答,已经找到原因了,是我的吃c3p0-config.xml配置文件写错了,<property name="driverClass">com.mysql.jdbc.Driver</property>,中的driverClass写成JdbcClass了
3 年多之前 回复

把mysql 服务打开

qq_32269293
爪哇岛卖咖啡 谢答,已经找到原因了,是我的吃c3p0-config.xml配置文件写错了,<property name="driverClass">com.mysql.jdbc.Driver</property>,中的driverClass写成JdbcClass了
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问