Skip to content

Commit

Permalink
Ssl bundle needs to be passed in as a parameter
Browse files Browse the repository at this point in the history
it was autowired
  • Loading branch information
cppwfs committed Oct 19, 2023
1 parent f8d3c66 commit 15d78eb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,11 @@ public class KafkaItemReaderAutoConfiguration {
@Autowired
private KafkaProperties kafkaProperties;

@Autowired
private SslBundles sslBundles;

@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix = "spring.batch.job.kafkaitemreader", name = "name")
public KafkaItemReader<Object, Map<String, Object>> kafkaItemReader(
KafkaItemReaderProperties kafkaItemReaderProperties) {
KafkaItemReaderProperties kafkaItemReaderProperties, SslBundles sslBundles) {
Properties consumerProperties = new Properties();
consumerProperties.putAll(this.kafkaProperties.getConsumer().buildProperties(sslBundles));
validateProperties(kafkaItemReaderProperties);
Expand Down

0 comments on commit 15d78eb

Please sign in to comment.