在Spring Batch应用程序中添加@EnableTask
后得到以下错误
The bean 'transactionManager', defined in class path resource [org/springframework/batch/core/configuration/annotation/SimpleBatchConfiguration.class], could not be registered. A bean with that name has already been defined in org.springframework.cloud.task.configuration.SimpleTaskConfiguration and overriding is disabled.