我在我的应用程序中使用了Spring批处理框架,其中我已成功集成了Spring批处理管理器。当我试图为JdbcTemplate创建bean时。它给我以下错误:在Spring批处理和Spring批次管理集成中DataSource冲突
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer': Invocation of init method failed; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [javax.sql.DataSource] is defined: expected single matching bean but found 2: dataSource,phoenixDataSource
其中“数据源”是使用Spring Batch的管理员,而“phoenixDataSource”是由我创建的。我如何区分两者,有没有办法将@Qualifier提供给BatchAdmin使用过的dataSource。