spring的定时器出现java.lang.NoSuchMethodError: org.springframework.core.JdkVersion.isAtLeastJava15()Z,是什么原因
我的配置文件如下:
<!-- 配置监听器任务类 -->
<bean id="task" class="com.iiss.task.ListenTask"></bean>
<bean id="stTask"
class="org.springframework.scheduling.timer.ScheduledTimerTask">
<property name="delay">
<value>10000</value>
</property>
<property name="period">
<value>1000</value>
</property>
<property name="timerTask">
<ref local="task" />
</property>
</bean>
<bean id="timerFactory"
class="org.springframework.scheduling.timer.TimerFactoryBean">
<property name="scheduledTimerTasks">
<list>
<ref local="stTask"/>
</list>
</property>
</bean>
//*****************************************
启动服务器的时候,就出现了
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'timerFactory' defined in ServletContext resource [/WEB-INF/classes/configs/applicationContext-listener.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.JdkVersion.isAtLeastJava15()Z
java.lang.NoSuchMethodError: org.springframework.core.JdkVersion.isAtLeastJava15()Z
这种异常,我检查了spring的版本信息,但是却不知道怎么解决,希望大侠们帮帮忙