警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [ApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.MethodParameter.withContainingClass(Ljava/lang/Class;)Lorg/springframework/core/MethodParameter;
Caused by: java.lang.NoSuchMethodError: org.springframework.core.MethodParameter.withContainingClass(Ljava/lang/Class;)Lorg/springframework/core/MethodParameter;

解决方案:j将 spring-test 和 spring-context version 改为相同版本