-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to specify the database type through EnableBatchProcessing #4320
Comments
Hi @fmbenhassine, after reviewing this issue, I worry if this feature might be confusing to users 🤔 . As far as I know, spring batch can determine the
If users are able to specify |
@seonwoo960000 In Spring Batch 5, there are two ways to configure infrastructure beans: the declarative approach through the What you are referring to is the programmatic way of configuring Spring Batch by extending Either ways, detecting the database type from the datasource's metadata should be done when the type is not specified (will be addressed in this issue for the annotation).
This extra validation is out of the scope of this issue. |
As of v5.0.1, there is no way to specify the database type through
@EnableBatchProcessing
. It should be possible to specify that parameter like other parameters, for example:The workaround to this is to manually customize the job repository bean by using
JobRepositoryFactoryBean#setDatabaseType
.Reference: https://stackoverflow.com/questions/75622056/issue-during-spring-batch-upgrade/75625032?noredirect=1#comment133462153_75625032
The text was updated successfully, but these errors were encountered: