Spring batch tables in a different schema

后端 未结 3 1113
眼角桃花
眼角桃花 2021-01-20 05:13

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

3条回答
  •  Happy的楠姐
    2021-01-20 05:51

    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
             
        
    

提交回复
热议问题