学习《spring in action》第一章,讲解DI的例子时,在eclipse中运行项目,报java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory错误,鼓捣了半天,终于发现错误原因:缺少 commons-logging.jar。也可以添加commons-logging-1.0.4.jar,建议使用后者或者更新版本
记录下来,希望对大家有帮助~。~
学习《spring in action》第一章,讲解DI的例子时,在eclipse中运行项目,报java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory错误,鼓捣了半天,终于发现错误原因:缺少 commons-logging.jar。也可以添加commons-logging-1.0.4.jar,建议使用后者或者更新版本
记录下来,希望对大家有帮助~。~