Spring cloud task's SimpleTaskConfiguration and spring batch's SimpleBatchConfiguration preventing spring boot auto configuration of XA transactions
问题 I am trying to configure XA/distributed transactions for a spring batch / spring cloud task application configured with spring boot. I have added the following dependency hoping to rely on spring boot auto configuration: compile("org.springframework.boot:spring-boot-starter-jta-atomikos") However the following two classes cause two transaction managers to be configured: org.springframework.cloud.task.configuration.SimpleTaskConfiguration org.springframework.batch.core.configuration.annotation