I want to use a different schema to save Spring Batch tables. I can see that my new datasource in set in the JobRepositoryFactoryBean. But still the tables are
JobRepositoryFactoryBean
Below property in application.properties is working for me.This will create meta schema tables under new_schema in your DB.
spring.batch.tablePrefix=new_schema.BATCH_
Below is the version of springBoot I am using.
org.springframework.boot spring-boot-starter-parent 2.1.3.RELEASE