为了账号安全,请及时绑定邮箱和手机立即绑定

无法加载jdbc驱动,该导入的包我都导了啊

[SpringTransaction] 2017-08-02 22:16:21   Could not load driverClass com.mysql.jdbc.Driver   

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver  

at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:188)

at com.mchange.v2.c3p0.DriverManagerDataSource.ensureDriverLoaded(DriverManagerDataSource.java:100)

at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:132)

at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)

at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)

at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)

at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)

at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)

at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)


正在回答

2 回答

http://img1.sycdn.imooc.com//59832aff000175f511520705.jpg我项目中导入的库

0 回复 有任何疑惑可以回复我~

估计你的jar包只放到了web-inf下的lip中,没有引入到项目中java build path中

0 回复 有任何疑惑可以回复我~
#1

汪小家 提问者

我导入了,这个我还是知道的
2017-08-03 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

无法加载jdbc驱动,该导入的包我都导了啊

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信