要解决问题https://jira.spring.io/browse/SPR-12283,我将Spring升级到版本41.2,之后它抱怨在ThreadPoolTaskScheduler中缺少方法setRemoveOnCancelPolicy。
根据JDK 1.6报告问题https://jira.spring.io/browse/SPR-12238,但我在1.7
我正在使用IBM Java,它的版本是java_1.7_64,当我在WebShepre中部署时,我得到以下异常
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
org.springframework.web.socket.config.annotation.WebSocketConfigurationSupport.defaultSockJsTaskScheduler()]
threw exception; nested exception is java.lang.NoSuchMethodError: org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.setRemoveOnCancelPolicy(Z)V
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.ja