Code Monkey home page Code Monkey logo

springboot-quartz's Introduction

quartz + springboot + httpclient

项目功能

1、springboot集成quartz,使用druid连接池 
2、支持http请求任务定时调度,当前支持get、post表单(formdata)、post Json三种请求类型,并记录返回内容
3、通过web界面进行任务管理,包括任务暂停、恢复、修改、历史记录、历史任务查看功能
4、支持调用接口(/quartz/httpJob/add)进行http任务添加  
5、根据jobname或jobgroup进行查询

部署方式

1、执行sql目录下的create_table.sql文件,建立quartz以及httpjob需要的数据库表  
2、修改application.properties中的数据库连接方式
3、访问http://localhost:8080/httpJob.html可通过web界面进行httpjob管理

组件版本

1、quartz 2.2.3  
2、springboot 2.1.0
3、jdbc 5.1.46
4、httpclient 4.5.6

注意事项

1、调用接口添加http定时请求任务时,requestType(请求类型)必填,只支持填入"GET"、 "POST_JSON"、 "POST_FORM",分别对应get, post json和post form-data三种类型;
2、调用接口添加http定时请求任务时,params(请求参数)选填,若填写,必须组装为合法的json字符串格式。

demo

HTTP请求任务管理
image

HTTP请求任务添加
image

HTTP请求任务执行记录
image

springboot-quartz's People

Contributors

helloflygit 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.