Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
datasync-service
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
datasync-service
Commits
5e2e3d70
Commit
5e2e3d70
authored
Jun 28, 2024
by
位宇华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改cron表达式
parent
91596f94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/tianyi/sync/task/ScheduleTask.java
src/main/java/com/tianyi/sync/task/ScheduleTask.java
+2
-2
No files found.
src/main/java/com/tianyi/sync/task/ScheduleTask.java
View file @
5e2e3d70
...
@@ -21,10 +21,10 @@ public class ScheduleTask {
...
@@ -21,10 +21,10 @@ public class ScheduleTask {
}
}
/**
/**
* 每月
1
号零点执行一次
* 每月
5
号零点执行一次
*/
*/
@Async
@Async
@Scheduled
(
cron
=
"0 0
0 1
* ?"
)
@Scheduled
(
cron
=
"0 0
5 *
* ?"
)
public
void
scheduleTask
()
{
public
void
scheduleTask
()
{
dataSyncService
.
sync
();
dataSyncService
.
sync
();
logger
.
info
(
"定时任务执行成功!!!!!!"
);
logger
.
info
(
"定时任务执行成功!!!!!!"
);
...
...
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