持续提升技术,完善知识体系
quartz任务调度,定时器

» quartz

选择所属分类: quartz

java tomcat tools maven spring zookeeper redis linux webservice dubbo mysql others nginx jvm springcloud hbase kubernetes hadoop clickhouse design vue
2016-04-25 19:08
Spring + quartz注解配置使用

Spring + quartz注解配置使用 本文接文spring4+quartz2基本配置及应用,使用注解配置 1、编写一个定时器执行类,重要的是使用Scheduled注解 AnnotationQueryJob.java package com.hode.job; import org.apache.log4j.Logger; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component public class AnnotationQueryJob { private...

2016-04-02 06:51
spring4+quartz2基本配置及应用

spring4+quartz2基本配置及应用 1、新建maven工程,添加spring4.0及quartz2.2依赖,pom.xml文件内容如下 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.qerooy</groupId> <artifactId>spring-quartz</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <properties> <spring.version>4.0.2.RELEASE</spring.version> <log4j.version>1.2.17</log4j.version> <quartz.version>2.2.1</quartz.version> </properties> <dependencies> <dependency> <groupId>org.springframework</groupId>...