Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-rest-admin-job-archetype
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 72e0b9f0
authored
Apr 11, 2021
by
fz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.定时任务时间间隔修改
1 parent
566d9ae7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/job/TimerTriggerAllJob.java
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/job/TimerTriggerAnyJob.java
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/job/TimerTriggerAllJob.java
View file @
72e0b9f
...
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
...
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
*/
*/
@Slf4j
@Slf4j
@Component
@Component
@ElasticSimpleJob
(
jobName
=
"TimerTriggerAllJob"
,
cron
=
"
0/10
* * * * ?"
)
@ElasticSimpleJob
(
jobName
=
"TimerTriggerAllJob"
,
cron
=
"
1/59
* * * * ?"
)
public
class
TimerTriggerAllJob
implements
SimpleJob
{
public
class
TimerTriggerAllJob
implements
SimpleJob
{
@Autowired
@Autowired
private
SceneService
sceneComponent
;
private
SceneService
sceneComponent
;
...
...
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/job/TimerTriggerAnyJob.java
View file @
72e0b9f
...
@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
...
@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
*/
*/
@Slf4j
@Slf4j
@Component
@Component
@ElasticSimpleJob
(
jobName
=
"TimerTriggerAnyJob"
,
cron
=
"
0/10
* * * * ?"
)
@ElasticSimpleJob
(
jobName
=
"TimerTriggerAnyJob"
,
cron
=
"
1/59
* * * * ?"
)
public
class
TimerTriggerAnyJob
implements
SimpleJob
{
public
class
TimerTriggerAnyJob
implements
SimpleJob
{
@Autowired
@Autowired
private
SceneService
sceneComponent
;
private
SceneService
sceneComponent
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment