Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhmes-agecal
Commits
ef6631ac
Commit
ef6631ac
authored
Sep 23, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 测试 上电后通信 和 最终完成 定时任务功能
parent
e6f58e8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
QuartzConfig.java
.../com/zehong/framework/config/properties/QuartzConfig.java
+0
-33
No files found.
zhmes-agecal-framework/src/main/java/com/zehong/framework/config/properties/QuartzConfig.java
deleted
100644 → 0
View file @
e6f58e8e
package
com
.
zehong
.
framework
.
config
.
properties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.scheduling.quartz.SchedulerFactoryBean
;
import
javax.sql.DataSource
;
import
java.util.Properties
;
/**
* @author lenovo
* @date 2025/9/23
* @description TODO
*/
@Configuration
public
class
QuartzConfig
{
@Bean
public
SchedulerFactoryBean
schedulerFactoryBean
(
DataSource
dataSource
)
{
SchedulerFactoryBean
factory
=
new
SchedulerFactoryBean
();
factory
.
setDataSource
(
dataSource
);
factory
.
setAutoStartup
(
true
);
factory
.
setWaitForJobsToCompleteOnShutdown
(
true
);
factory
.
setOverwriteExistingJobs
(
true
);
Properties
props
=
new
Properties
();
props
.
put
(
"org.quartz.scheduler.instanceName"
,
"DeviceScheduler"
);
props
.
put
(
"org.quartz.scheduler.instanceId"
,
"AUTO"
);
props
.
put
(
"org.quartz.jobStore.misfireThreshold"
,
"60000"
);
factory
.
setQuartzProperties
(
props
);
return
factory
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment