81,090
社区成员
发帖
与我相关
我的任务
分享
<?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:context="http://www.springframework.org/schema/context"
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.1.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd">
<!-- ******start********* 短信补发定时任务(整点补发) -->
<bean id="sms_Task" class="com.service.SMS.timetask.SmsTask">
</bean>
<task:scheduler id="SmsTask" pool-size="3" />
<task:scheduled-tasks scheduler="SmsTask">
<task:scheduled ref="sms_Task" method="test" cron="0 0 0/1 * * ?" />
</task:scheduled-tasks>
<!-- ******end********* -->
</beans>