|
|
@@ -102,8 +102,8 @@
|
|
|
<!-- 定时器 这个是定时器要调用方法的类 -->
|
|
|
<bean id="job1" class="com.happy.action.hotelCoupomAction" />
|
|
|
<!-- 定义调用对象和调用对象的方法 -->
|
|
|
-<!-- <task:scheduled-tasks>-->
|
|
|
+ <task:scheduled-tasks>
|
|
|
<!-- <!– 调用的类job1调用类中的方法execute 这里表示的是每10秒执行一次 –>-->
|
|
|
-<!-- <task:scheduled ref="job1" method="setCoupomStatus" cron="0/10 * * * * ?" />-->
|
|
|
-<!-- </task:scheduled-tasks>-->
|
|
|
+ <task:scheduled ref="job1" method="setCoupomStatus" cron="0 1 0 * * ?" />
|
|
|
+ </task:scheduled-tasks>
|
|
|
</beans>
|