我试着配置spring批处理以运行架构并删除脚本:
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer
batch.schema.script=classpath:/org/springframework/batch/core/schema-postgresql.sql
batch.drop.script=classpath:/org/springframework/batch/core/schema-drop-postgresql.sql
batch.jdbc.testWhileIdle=false
batch.jdbc.validationQuery=
batch.data.source.init=true
batch.table.prefix=BATCH_
在开始时,它会创建表,但显然它不会超出drop脚本,因为数据总是在那里。
使用: - 春季批次3.0.8 - 春季靴子1.5.10
有什么想法吗?
由于