Spring Batch Framework - Auto create Batch Table

后端 未结 9 1592
广开言路
广开言路 2020-12-01 12:02

I just created a batch job using Spring Batch framework, but I don\'t have Database privileges to run CREATE SQL. When I try to run the batch job I hit the error while the f

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 12:50

    When running with Spring Boot:

    Running with Spring Boot v1.5.14.RELEASE, Spring v4.3.18.RELEASE

    This should be enough:

    spring:
        batch:
            initializer:
                enabled: false
    

    The initialize-schema did not work for this Spring boot version. After that I was able to copy the SQL scripts from the spring-core jar and change the table capitalization since this was my issue with the automatic table creation under Windows/Mac/Linux.

提交回复
热议问题