<?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:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd "
<bean name="WriteWfzjJob" class="com.hh.jcpt.gab6in1.service.impl.WriteWfzjImpl" />
<task:scheduled-tasks>
<!--多个方法-->
<task:scheduled ref="WriteWfzjJob" method="work1" cron="0 0 2 * * ?" />
<task:scheduled ref="WriteWfzjJob" method="work2" cron="0 0 3 * * ?" />
</task:scheduled-tasks>
</beans>