<-- application.xml中添加下面的代码-->
<!-- 定时任务 -->
<task:annotation-driven/>
<!-- applicationcontextaware,获取service -->
<bean id="applicationContextUtis" class="com.infotrust.common.utils.commutils.ApplicationContextUtis" />
<!-- 定时任务所在的类 -->
<bean id="monitorTask" class="com.infotrust.creditreport.reportmonitor.task.MonitorTask" />
<!-- 监控定时任务配置时间 -->
<task:scheduled-tasks>
<task:scheduled ref="monitorTask" method="monitorinfo" cron="0 58 14 * * ?"/>
</task:scheduled-tasks>
package com.infotrust.common.utils.commutils;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationCo