📌  相关文章
📜  线程“main”中的异常 java.lang.noclassdeffounderror: org apache commons logging logfactory - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:36.358000             🧑  作者: Mango

代码示例1
First, double check that your classpath is indeed correct. 
Second, try opening the jar and check that it actually contains the org.apache.commons.logging.LogFactory class. 
Finally, try debugging by setting a breakpoint in the class loader. !!–Kolibri!!

If you're using maven for managing dependencies, add the following line in your pom.xml:

        commons-logging
        commons-logging
        1.1.1