(1)web.xml配置
(2)springmvc配置
xmlns:task="http://www.springframework.org/schema/task"
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-4.1.xsd
<!-- 任务调度器 -->
<task:scheduler id="scheduler" pool-size="10" />
<!-- 设置定时任务 -->
<task:annotation-driven executor="scheduler" proxy-target-class="true"/>
(3)访问接口
(4)jar包