图源:简书 (jianshu.com) 定时任务是一种很常见的需求,比如我们可能需要应用定期去执行一些清理工作,再比如可能需要定期检查一些外部服务的可用性等。 fixedDelay 要在 Spring 中开启定时任务相关功能,需要在任意的配置类上添加上@EnableScheduling: @Configuration @EnableScheduling public class WebConfig { } 之后就可以在 Spring Bean 中定义一个定时任务对应的方法: @Component public cl…
SpringBoot
SpringMVC
MySQL
Java
php
Linux
设计模式
HTTP
Wordpress
Python
Activiti
Redis
SpringCloud
debug
前端开发
Maven
生活随笔
Spring Easy
MD-img
oa-demo
油猴脚本
i-tree
auto-hot-key
bilibili-down
haokan-down
PEP中文
M3U-Helper
我的Windows软件列表
