1

I've data-source properties in my application.properties, but i don't want spring batch to create meta tables in my database. Do we have a way to keep the data-source but stop spring batch from creating the meta data files.

Prateek
  • 11
  • 1
  • 2
  • Possible duplicate of [Spring-Batch without persisting metadata to database?](https://stackoverflow.com/questions/25077549/spring-batch-without-persisting-metadata-to-database) – pvpkiran Jan 29 '18 at 08:11

1 Answers1

1

Add the following property in your application.properties file:

spring.batch.initialize-schema=never

This will prevent creating meta data tables in your data source. You can find more details on this here: https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto-initialize-a-spring-batch-database

Mahmoud Ben Hassine
  • 22,860
  • 3
  • 21
  • 45