spring-task.xml
web.xml(在web.xml中加入以下代码)
contextConfigLocation /WEB-INF/config/spring-task.xml
MidTask.java
package com.henu.task;public class MidTask { public void midownloadItemTask(){ System.out.println("task1"); } public void midownloadStatusTask(){ System.out.println("task2"); }}