需求是这样的:系统中会有很多的执行时间,三个或者四个这样,不确定,以后可能是五个!当用户在页面添加执行时间时,我们后台也要对应执行用户添加的时间。
数据库设计:
DROP TABLE IF EXISTS `test_time_task`;
CREATE TABLE `test_time_task` (
`status` int(11) DEFAULT NULL COMMENT '状态:0为...
分类:
编程语言 时间:
2014-06-05 10:00:30
阅读次数:
245
文件配置如下:
<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"
xsi:sch...
分类:
编程语言 时间:
2014-05-22 07:38:58
阅读次数:
388
追新,都使用了最新的版本,Spring
4.0.3,Quartz:2.2.1,使用maven构建,父类的pom.xml(里面有几个与示例无关的依赖及配置,没删除): 4.0.0
com.garfield.garserver garserver 0.0.1-SNAPSHOT pom ...
分类:
编程语言 时间:
2014-05-19 10:37:04
阅读次数:
392
这里只是做简单的记录如何实现。
一、基于配置文件的实现
①编写需要调度的类
package com.study;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
//@Component
public cla...
分类:
编程语言 时间:
2014-05-14 19:21:22
阅读次数:
279
檔案說明pom.xml-maven設定Main.class主程式StoreOrderSyncTask.class-一個需要固定執行的Task,裡面只有一個方法Spring-Quartz.xml-設定要固定執行的Task,和執行的時間pom.xml<projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSc..
分类:
编程语言 时间:
2014-05-02 03:52:19
阅读次数:
339