SSM timers, regular tasks

(1) web.xml configuration
Here Insert Picture Description
(2) springmvc Configuration
Here Insert Picture Description

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) Access Interface
Here Insert Picture DescriptionHere Insert Picture Description
(4) jar package
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/WXN069/article/details/92570115