Polish "Add BatchTransactionManager annotation"

See gh-39473
This commit is contained in:
Scott Frederick
2024-02-13 15:37:32 -06:00
parent bb87faf237
commit 22952c3057
3 changed files with 31 additions and 9 deletions

View File

@@ -21,8 +21,7 @@ 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`.
Similar to <<howto.batch.specifying-a-data-source>>, you can 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`.