File tree Expand file tree Collapse file tree 4 files changed +11
-14
lines changed
java/io/github/toquery/example/quartz
test/java/io/github/toquery/example/quartz Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 66import org .springframework .jdbc .core .JdbcTemplate ;
77import 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}
Original file line number Diff line number Diff line change 33
44spring :
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
Original file line number Diff line number Diff line change 44import org .springframework .boot .test .context .SpringBootTest ;
55
66@ SpringBootTest
7- class ExampleQuartzApplicationTests {
7+ class ExampleSpringQuartzApplicationTests {
88
99 @ Test
1010 void contextLoads () {
You can’t perform that action at this time.
0 commit comments