抛出异常:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactoryat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.(DefaultSingletonBeanRegistry.java:81)at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.(FactoryBeanRegistrySupport.java:43)at org.springframework.beans.factory.support.AbstractBeanFactory.(AbstractBeanFactory.java:176)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.(AbstractAutowireCapableBeanFactory.java:159)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.(AbstractAutowireCapableBeanFactory.java:170)at org.springframework.beans.factory.support.DefaultListableBeanFactory.(DefaultListableBeanFactory.java:166)at org.springframework.beans.factory.xml.XmlBeanFactory.(XmlBeanFactory.java:78)at org.springframework.beans.factory.xml.XmlBeanFactory.(XmlBeanFactory.java:67)
异常原因:缺少commons-logging.jar包。
异常解决:导入commons-logging.jar包即可。
jar包资源下载:百度云盘