1.错误:[ContextLoader] Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx]
Offending resource: class path resource [applicationContext.xml]
原因:applicationContext.xml里面用到的标签是spring 2.0的,而我项目里面用到的是spring 2.5的jar
解决:
2.错误:java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;
原因:jar包冲突,一个是3.x版,一个是2.x版