当前位置:   article > 正文

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory解决方案

java.lang.noclassdeffounderror: org/apache/commons/logging/logfactory

  导入commons-logging-1.2.jar辅助类包即可。

报错提示:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at org.springframework.jdbc.support.JdbcAccessor.<init>(JdbcAccessor.java:43)
    at org.springframework.jdbc.core.JdbcTemplate.<init>(JdbcTemplate.java:164)
    at DemoJDBCTemplate.Templatedemo1.main(Templatedemo1.java:13)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
    ... 3 more

 

转载于:https://www.cnblogs.com/duguangming/p/10650122.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/278970
推荐阅读
相关标签
  

闽ICP备14008679号