Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Development Lib
>
Microservice
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
849
Star
3.1K
Fork
951
GVP
JbootProjects
/
jboot
Code
Issues
73
Pull Requests
0
Wiki
Insights
Pipelines
Service
JavaDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
注解方式使用cron4j没有按计划运行,原因不明
Backlog
#I4ZTP8
zeroabc
Opened this issue
2022-03-28 10:10
``` @Cron("0 1 * * *")//凌晨1点运行 public class DaySyncStuDataJob implements Runnable { @Override public void run() { IcdcService icdcService = Aop.get(IcdcService.class); icdcService.syncDatasAvailable(); } } ``` 如上所示计划是每日凌晨1点运行的,但是实际只有新开启运行的那一次的次日凌晨有运行,之后的凌晨都没有再自行到,代码没有报错记录 但是如果是本机调试,把时间写的很短,比如每分钟一次,却又能正常运行,然后也试着把Cron表达式 改成0 1 */1 * * 情况依然没有变化
``` @Cron("0 1 * * *")//凌晨1点运行 public class DaySyncStuDataJob implements Runnable { @Override public void run() { IcdcService icdcService = Aop.get(IcdcService.class); icdcService.syncDatasAvailable(); } } ``` 如上所示计划是每日凌晨1点运行的,但是实际只有新开启运行的那一次的次日凌晨有运行,之后的凌晨都没有再自行到,代码没有报错记录 但是如果是本机调试,把时间写的很短,比如每分钟一次,却又能正常运行,然后也试着把Cron表达式 改成0 1 */1 * * 情况依然没有变化
Comments (
1
)
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (6)
Tags (284)
master
jboot3.x-restful
v3.0
v2.0
v1.x
1.8.x
v4.1.8
v4.1.7
v4.1.6
v4.1.5
v4.1.3
v4.1.2
v4.1.1
v4.1.0
v4.0.9
v4.0.8
v4.0.7
v4.0.6
v4.0.5
v4.0.4
v4.0.3
v4.0.2
v4.0.1
v4.0.0
v3.17.1
v3.17.0
v3.16.9
v3.16.8
v3.16.7
v3.16.5
v3.16.4
v3.16.3
v3.16.2
v3.16.1
v3.16.0
v3.15.10
v3.15.9
3.15.8
v3.15.7
v3.15.6
v3.15.5
v3.15.4
v3.15.3
v3.15.2
v3.15.1
v3.15.0
v3.14.9
v3.14.8
v3.14.7
v3.14.5
v3.14.4
v3.14.3
v3.14.2
v3.14.1
v3.14.0
v3.13.8
v3.13.7
v3.13.6
v3.13.5
v3.13.4
v3.13.3
v3.13.2
v3.13.1
v3.13.0
v3.12.5
v3.12.4
v3.12.3
v3.12.2
v3.12.1
v3.12.0
v3.11.4
v3.11.3
v3.11.2
v3.11.1
v3.11.0
v3.10.8
v3.10.7
v3.10.6
v3.10.5
v3.10.4
v3.10.3
v3.10.2
v3.10.1
v3.10.0
v3.9.20
v3.9.19
v3.9.18
v3.9.17
v3.9.16
v3.9.15
v3.9.14
v3.9.13
v3.9.12
v3.9.11
v3.9.10
v3.9.9
v3.9.8
v3.9.7
v3.9.6
v3.9.5
v3.9.4
v3.9.3
v3.9.2
v3.9.1
v3.9.0
v3.8.1
v3.8.0
v3.7.8
v3.7.7
v3.7.6
v3.7.5
v3.7.4
v3.7.3
v3.7.2
v3.7.1
v3.7.0
v3.6.9
v3.6.8
v3.6.7
v3.6.6
v3.6.5
v3.6.4
v3.6.3
v3.6.2
v3.6.1
v3.6.0
v3.5.9
v3.5.8
v3.5.7
v3.5.6
v3.5.5
v3.5.4
v3.5.3
v3.5.2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1.0
1.0-rc.4
1.0-rc.3
1.0-rc.2
1.0-rc.1
1.0-beta9
1.0-beta8
1.0-beta7
1.0-beta6
1.0-beta5
1.0-beta4
1.0-beta2
1.0-beta1
1.0-alpha4.1
1.0-alpha3
1.0-alpha2
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
Java
1
https://gitee.com/JbootProjects/jboot.git
git@gitee.com:JbootProjects/jboot.git
JbootProjects
jboot
jboot
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register