Class not found cn.muke.spring.demo1.SpringDemo1
java.lang.ClassNotFoundException: cn.muke.spring.demo1.SpringDemo1
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:773)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:502)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:525)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
这是由于缺少jar包导致的,c3p0连接池不仅需要c3p0的jar包,还需要mcommons的jar包,两个jar包下载地址如下:
c3p0:https://www.mvnjar.com/com.mchange/c3p0/0.9.5.1/detail.html
mchange-commons:https://www.mvnjar.com/com.mchange/mchange-commons-java/0.2.16/detail.html