+1

SpringBoot - Schedule - Save Cronjob to DB - AOP

Spring-boot scheduled task manager with database

  • Sử dụng springboot scheduled task để quản lý task và set thời gian cho từng task
  • Tạo thread mới khi run task
  • Sử dụng cron để set time cho task
  • Sử dụng DB để lưu thời gian config và thay đổi lịch run task
  • Sử dụng aop để xử lý cron và log

source : https://github.com/cuongnv99/schedule-task

Dùng h2 profile cho maven build lifecycle (sẽ trigger spring profile h2). Ví dụ: * mvn clean spring-boot:run -Ph2 * mvn clean install -Ph2

DESIGN DOCUMENT

  1. Component diagram
  2. Database
  3. Class diagram
  4. Tasks’ features

Diagram


All rights reserved

Bình luận

Đăng nhập để bình luận
Avatar
+1
Viblo
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí