Spring Batch Table Prefix when using Java Config

前端 未结 1 1968
时光取名叫无心
时光取名叫无心 2021-01-12 14:39

My Spring Batch repository (deployed on an Oracle database) lies in a different schema such that I need to prepend the schema name.

When using XML configuration, thi

相关标签:
1条回答
  • 2021-01-12 15:15

    Simply add this line to any of your properties files registered on you batch configuration:

    spring.batch.table-prefix= GFA.BATCH_
    

    FYI, the prefix spring.batch is mapped with org.springframework.boot.autoconfigure.batch.BatchProperties provided with Spring boot. See source code on github.

    0 讨论(0)
提交回复
热议问题