lijie 2 vuotta sitten
vanhempi
commit
5a4163518d
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      mhotel/src/applicationContext.xml

+ 3 - 3
mhotel/src/applicationContext.xml

@@ -102,8 +102,8 @@
     <!-- 定时器  这个是定时器要调用方法的类 -->
     <!-- 定时器  这个是定时器要调用方法的类 -->
     <bean id="job1" class="com.happy.action.hotelCoupomAction" />
     <bean id="job1" class="com.happy.action.hotelCoupomAction" />
     <!-- 定义调用对象和调用对象的方法   -->
     <!-- 定义调用对象和调用对象的方法   -->
-<!--    <task:scheduled-tasks>-->
+    <task:scheduled-tasks>
 <!--        &lt;!&ndash; 调用的类job1调用类中的方法execute  这里表示的是每10秒执行一次 &ndash;&gt;-->
 <!--        &lt;!&ndash; 调用的类job1调用类中的方法execute  这里表示的是每10秒执行一次 &ndash;&gt;-->
-<!--        <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>
 </beans>