Skip to content

Latest commit

 

History

History
75 lines (45 loc) · 2.25 KB

README.md

File metadata and controls

75 lines (45 loc) · 2.25 KB

Welcome to spring-batch-rapid-starter 👋

Version License: MIT

A template for quickly building highly configurable spring batch based jobs

Usage

I've noticed an abundance of xml-based starters/examples but fewer class-based jobs. This is an opinionated collection of patterns that I've found handy.

Packages

The starter is divided into the following packages:

packages

How does the starter work?

com.batch.Application is the main class of the application, as in a normal spring boot app.

Configuration classes for necessary batch components are scanned via Spring accordingly/

com.batch.config.* contains classes that configure jobs,steps and tasks:

  • db contains datasource configuration. This could be a JDBC connection, MongoDB, etc
  • readers contains configuration and custom reader instantiations
  • writers contains configuration and custom writer instantiations
  • batch configures the overall batch processing job

com.batch.custom contains custom reader/writer impls

com.batch.model contains model classes

com.batch.processor contains processor implementations

com.batch.notification contains custom listeners

Run tests

The starter comes with a basic integration test that will run the sample job. This should be tailored to your specific use case.

mvn test

Author

👤 Sai Nimmagadda

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Sai Nimmagadda.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator