Add BatchTransactionManager annotation
Add a new @BatchTransactionManager annotation for marking a PlatformTransactionManager that should be used in batch processing. See gh-39473
This commit is contained in:
committed by
Scott Frederick
parent
51991d6f41
commit
bb87faf237
@@ -19,6 +19,14 @@ For more info about Spring Batch, see the {spring-batch}[Spring Batch project pa
|
||||
|
||||
|
||||
|
||||
[[howto.batch.specifying-a-transaction-manager]]
|
||||
=== Specifying a Batch Transaction Manager
|
||||
Similar to <<howto.batch.specifying-a-data-source>> you can also define a `PlatformTransactionManager`
|
||||
for use in the batch processing by marking it as `@BatchTransactionManager`.
|
||||
If you do so and want two transaction managers, remember to mark the other one as `@Primary`.
|
||||
|
||||
|
||||
|
||||
[[howto.batch.running-jobs-on-startup]]
|
||||
=== Running Spring Batch Jobs on Startup
|
||||
Spring Batch auto-configuration is enabled by adding `spring-boot-starter-batch` to your application's classpath.
|
||||
|
||||
Reference in New Issue
Block a user