spring boot启动报错java.lang.ClassNotFoundException: jdbc.driver


java.lang.ClassNotFoundException: jdbc.driver

at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_201]

at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_201]

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[na:1.8.0_201]

at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_201]

at java.lang.Class.forName0(Native Method) ~[na:1.8.0_201]

at java.lang.Class.forName(Unknown Source) ~[na:1.8.0_201]

at com.mchange.v2.c3p0.DriverManagerDataSource.ensureDriverLoaded(DriverManagerDataSource.java:143) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:173) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870) [c3p0-0.9.5.2.jar:0.9.5.2]

at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696) [mchange-commons-java-0.2.11.jar:0.2.11]


2019-03-31 17:01:46.250  WARN 2964 --- [HelperThread-#0] c.m.v2.c3p0.DriverManagerDataSource      : Could not load driverClass jdbc.driver


qq_慕UI1509239
浏览 672回答 1
1回答

qq_无_奈_0

没有找到jdbc的驱动,去检查你的数据库连接
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java