Giter VIP home page Giter VIP logo

javaspringboot-quartzdemo's Introduction

SpringBoot整合Quartz简单完整例子

由于之前有许多小伙伴因为看过我的这篇《SpringBoot整合Quartz作为调度中心使用完整实例》

问过我如何写个定时任务,里面写上逻辑自己的逻辑。故做此例子进行了实现说明。

本例是SpringBoot完全整合Quartz的一个完整例子,基本不需要其他过多配置,基于SpringBoot 2.1.6.RELEASE

1. 基本的实现效果: 对定时任务的 自定义逻辑,启动,暂停,恢复,删除,修改。

2. 直接启动本例进行测试:

  • 启动 : localhost:8080/start 启动一个名为HelloWorld,组名为GroupOne的定时任务,每隔2秒打印 "hello world"
  • 暂停 : localhost:8080/pause 暂停HelloWorld定时任务
  • 恢复 : localhost:8080/resume 恢复HelloWorld定时任务
  • 删除 : localhost:8080/delete 删除HelloWorld定时任务
  • 修改 : localhost:8080/modifyCron 修改HelloWorld定时任务,修改之后,每隔5秒打印 "hello world"

javaspringboot-quartzdemo's People

Contributors

ealenxie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.