Class not found cn.muke.spring.demo1.SpringDemo1 java.lang.ClassNotFoundException: cn.muke.spring.demo1.SpringDemo1

来源:4-1 转账环境的搭建

慕莱坞3396034

2020-03-25 09:44

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)


写回答 关注

1回答

  • Mr_Tory
    2020-04-13 22:19:31

    这是由于缺少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

Spring事务管理

事务管理是Spring重要的知识,应用事务解决数据不一致问题

87318 学习 · 197 问题

查看课程

相似问题