Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.29 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.29 KB

spring-batch-admin-spring-boot

This is a a Spring Boot capsule of the standard Spring Batch Admin application of the Spring Batch team.

With this capsule it is possible to run the Spring Batch Admin as a Spring Boot application instead of deploying it to a servlet container like tomcat.

As default configuration a local H2 database is used for the batch metadata.

This can be changed:

  1. You have other H2 properties?
    • Just change the entries inside batch-h2.properties
  2. You prefer to use another database system?
    • Add a new file batch-[your-db].properties (a template can be found in the root of spring-batch-core.jar)
    • Set the property ENVIRONMENT in application.properties to your-db (means i.e. batch-oracle.properties with ENVIRONMENT=oracle)

You can test the running application by starting the JUnit test class BatchTest that can be found in the test sources folder.

Feel free to use it.

Changelog

Difference to https://github.com/codecentric/spring-batch-admin-spring-boot

  • switched to gradle build
  • used h2 instead of hsql
  • use automatically created embedded db for tests (no external test-dependency)