会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Cxvvy
博客园
首页
新随笔
联系
订阅
管理
2019年5月14日
springboot 定时任务
摘要: 1.启动类加 @EnableScheduling 注解(见名知意) 开启对定时任务的支持 2.springboot项目的pom.xml中写入 spring-boot-starter 和 spring-boot-starter-test 依赖项 3.任务类加注解@Component ,方法(该方法不能
阅读全文
posted @ 2019-05-14 11:32 Cxvvy
阅读(212)
评论(0)
推荐(0)
编辑
公告