记一次java.lang.NoSuchMethodError错误

记一次java.lang.NoSuchMethodError错误

Exception in thread "main" java.lang.NoSuchMethodError: 'void org.springframework.core.annotation.AnnotationUtils.clearCache()'
at org.springframework.context.support.AbstractApplicationContext.resetCommonCaches(AbstractApplicationContext.java:923)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:574)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:144)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:85)    

	
		org.springframework
		spring-core
		4.3.7.RELEASE
	
	
		org.springframework
		spring-beans
		4.3.7.RELEASE
	
	
		org.springframework
		spring-context
		5.1.5.RELEASE
	

错误原因:spring-context版本错误,将spring-context的版本改成与spring-beans等一致就OK了。即


		org.springframework
		spring-context
		4.3.7.RELEASE
	

你可能感兴趣的:(异常)