File tree Expand file tree Collapse file tree 6 files changed +94
-0
lines changed
test/java/org/ylc/note/quartz Expand file tree Collapse file tree 6 files changed +94
-0
lines changed Original file line number Diff line number Diff line change 2727 <module >rate-limiter</module >
2828 <module >concurrent</module >
2929 <module >sharding-sphere</module >
30+ <module >quartz</module >
3031 </modules >
3132
3233 <properties >
Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments