<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:task="http://www.springframework.org/schema/task" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.2.xsd" default-lazy-init="true"> <description>定时任务配置 20181206 moly</description> <task:annotation-driven/> <bean id="testTask" class="com.hp.cmsz.service.monitoroperation.workingordercustomanalysisupdate.TestTask"></bean> <!-- <task:scheduled-tasks> <task:scheduled ref="testTask" method="clearCache" cron= "*/30 * * * * ?" /> </task:scheduled-tasks>--> </beans>