Search code examples
javaspringspring-bootspring-batchhsqldb

Database and Meta DB table for Spring batch


I am very new to Spring Batch. Tried the getting started example from spring doc. using spring-boot-starter-parent(1.5.2.RELEASE). Trying to understand where can I see the data that is inserted using this "Person" table in hsql. and also where can I see the Meta data tables for this example after execution. Please help me to understand this.


Solution

  • By default, Spring Boot uses an embedded database (H2, HSQL, Derby) accordingly to your dependencies.

    H2 provides a great web console to view the state of your database. You'll find more informations here : https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-sql.html#boot-features-sql-h2-console

    If you'd like to stay with HSQL, please have a look at this answer : https://stackoverflow.com/a/8880390/8232755