Skip to content

Commit 110431a

Browse files
committed
quartz
1 parent 5b833bf commit 110431a

File tree

6 files changed

+94
-0
lines changed

6 files changed

+94
-0
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<module>rate-limiter</module>
2828
<module>concurrent</module>
2929
<module>sharding-sphere</module>
30+
<module>quartz</module>
3031
</modules>
3132

3233
<properties>

quartz/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## 任务调度
2+
[官网](http://www.quartz-scheduler.org/documentation/quartz-2.3.0/quick-start.html)
3+
4+
### 任务`JOB`
5+
定义要具体执行的内容
6+
7+
### 触发器`Trigger`
8+
用于触发执行`JOB`
9+
10+
### 调度器`Scheduler`
11+
独立运行容器,控制`JOB``Trigger`

quartz/pom.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>org.ylc.note</groupId>
8+
<artifactId>root</artifactId>
9+
<version>1.0</version>
10+
</parent>
11+
12+
<artifactId>quartz</artifactId>
13+
<version>0.0.1</version>
14+
<name>quartz</name>
15+
<description>任务调度</description>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.springframework.boot</groupId>
20+
<artifactId>spring-boot-starter-web</artifactId>
21+
</dependency>
22+
23+
<dependency>
24+
<groupId>org.quartz-scheduler</groupId>
25+
<artifactId>quartz</artifactId>
26+
</dependency>
27+
28+
<dependency>
29+
<groupId>org.projectlombok</groupId>
30+
<artifactId>lombok</artifactId>
31+
<optional>true</optional>
32+
</dependency>
33+
34+
<dependency>
35+
<groupId>org.springframework.boot</groupId>
36+
<artifactId>spring-boot-starter-test</artifactId>
37+
<scope>test</scope>
38+
<exclusions>
39+
<exclusion>
40+
<groupId>org.junit.vintage</groupId>
41+
<artifactId>junit-vintage-engine</artifactId>
42+
</exclusion>
43+
</exclusions>
44+
</dependency>
45+
</dependencies>
46+
47+
<build>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.springframework.boot</groupId>
51+
<artifactId>spring-boot-maven-plugin</artifactId>
52+
</plugin>
53+
</plugins>
54+
</build>
55+
56+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.ylc.note.quartz;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class QuartzApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(QuartzApplication.class, args);
11+
}
12+
13+
}

quartz/src/main/resources/application.properties

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.ylc.note.quartz;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.springframework.boot.test.context.SpringBootTest;
5+
6+
@SpringBootTest
7+
class QuartzApplicationTests {
8+
9+
@Test
10+
void contextLoads() {
11+
}
12+
13+
}

0 commit comments

Comments
 (0)