我得到,當我們試圖加載在春天我們得到以下例外情況下面例外,Spring上下文initializtion失敗
2016-11-03 04:03:48,043 [localhost-startStop-9] ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheExporter' defined in URL [jar:file:/apps/vcmp/prod/instances/prod1/vcmp-services-4.0.0/webapps/vcmp-distribution-4.0.0/WEB-INF/lib/vcmp-management-4.0.0.jar!/META-INF/spring/jmxContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.JdkVersion.isAtLeastJava15()Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
突出顯示的方法名「isAtLeastJava15()」不存在於我們使用的jdkVersion類是spring-core-4.2.6.jar和java版本1.8.0.102。
我們很長時間都在苦苦掙扎,如果有人能提供有效的細節,這將會很有幫助。提前致謝。
問候, 拉加
檢查您的classpath中是否有老版本的彈簧 – kuhajeyan