Skip to content

Commit d52eeeb

Browse files
committed
init
1 parent 8718ddd commit d52eeeb

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.2.6.RELEASE</version>
8+
<version>2.5.5</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>io.github.toquery</groupId>
12-
<artifactId>example-quartz</artifactId>
12+
<artifactId>example-spring-quartz</artifactId>
1313
<version>0.0.1-SNAPSHOT</version>
14-
<name>example-quartz</name>
14+
<name>example-spring-quartz</name>
1515
<description>Demo project for Spring Boot</description>
1616

1717
<properties>

src/main/java/io/github/toquery/example/quartz/ExampleQuartzApplication.java renamed to src/main/java/io/github/toquery/example/quartz/ExampleSpringQuartzApplication.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
import org.springframework.jdbc.core.JdbcTemplate;
77
import org.springframework.scheduling.annotation.EnableScheduling;
88

9-
import javax.sql.DataSource;
10-
119
// @EnableScheduling
1210
@SpringBootApplication
13-
public class ExampleQuartzApplication {
11+
public class ExampleSpringQuartzApplication {
1412

1513
public static void main(String[] args) {
16-
SpringApplication.run(ExampleQuartzApplication.class, args);
14+
SpringApplication.run(ExampleSpringQuartzApplication.class, args);
1715
}
1816

1917
}

src/main/resources/application.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ server:
33

44
spring:
55
application:
6-
name: example-quartz
6+
name: example-spring-quartz
77
jpa:
88
open-in-view: false
99
show-sql: true
@@ -15,18 +15,17 @@ spring:
1515
use_sql_comments: true
1616
#连接池配置
1717
datasource:
18-
platform: org.hibernate.dialect.MySQL5Dialect
1918
driver-class-name: com.mysql.cj.jdbc.Driver
20-
url: jdbc:mysql://localhost:3306/example_quartz?useSSL=false&useUnicode=true
21-
username: root
22-
password: 123456
19+
url: jdbc:mysql://${DB_MYSQL_HOST}:3306/example_spring_quartz?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull
20+
username: ${DB_MYSQL_USER}
21+
password: ${DB_MYSQL_PASSWORD}
2322

2423
quartz:
2524
auto-startup: true
2625
job-store-type: jdbc
2726
jdbc:
2827
initialize-schema: ALWAYS
29-
scheduler-name: example-quartz
28+
scheduler-name: example-spring-quartz
3029
properties:
3130
org.quartz.jobStore.isClustered: true
3231
# org.quartz.scheduler.instanceName: quartz-demo-app

src/test/java/io/github/toquery/example/quartz/ExampleQuartzApplicationTests.java renamed to src/test/java/io/github/toquery/example/quartz/ExampleSpringQuartzApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import org.springframework.boot.test.context.SpringBootTest;
55

66
@SpringBootTest
7-
class ExampleQuartzApplicationTests {
7+
class ExampleSpringQuartzApplicationTests {
88

99
@Test
1010
void contextLoads() {

0 commit comments

Comments
 (0)