摘要: 一、你需要在项目中加入quartz-all-2.1.7.jar的jar包(我这里使用spring boot环境) 二、然后需要新建一个类去注册定时任务和销毁定时任务,这个类需要实现ServletContextListener的接口中的contextInitialized和contextDestroy 阅读全文
posted @ 2019-07-20 20:37 张小振的博客 阅读(358) 评论(0) 推荐(0) 编辑