Skip to content

Commit 15d78eb

Browse files
committed
Ssl bundle needs to be passed in as a parameter
it was autowired
1 parent f8d3c66 commit 15d78eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/kafka/KafkaItemReaderAutoConfiguration.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,11 @@ public class KafkaItemReaderAutoConfiguration {
5151
@Autowired
5252
private KafkaProperties kafkaProperties;
5353

54-
@Autowired
55-
private SslBundles sslBundles;
56-
5754
@Bean
5855
@ConditionalOnMissingBean
5956
@ConditionalOnProperty(prefix = "spring.batch.job.kafkaitemreader", name = "name")
6057
public KafkaItemReader<Object, Map<String, Object>> kafkaItemReader(
61-
KafkaItemReaderProperties kafkaItemReaderProperties) {
58+
KafkaItemReaderProperties kafkaItemReaderProperties, SslBundles sslBundles) {
6259
Properties consumerProperties = new Properties();
6360
consumerProperties.putAll(this.kafkaProperties.getConsumer().buildProperties(sslBundles));
6461
validateProperties(kafkaItemReaderProperties);

0 commit comments

Comments
 (0)