Browse Source

Fix typo in Kafka sample

pull/7763/head
Artem Bilan 9 years ago committed by Phillip Webb
parent
commit
c700cf28cc
  1. 7
      spring-boot-docs/src/main/java/org/springframework/boot/kafka/KafkaSpecialProducerConsumerConfigExample.java

7
spring-boot-docs/src/main/java/org/springframework/boot/kafka/KafkaSpecialProducerConsumerConfigExample.java

@ -64,11 +64,10 @@ public class KafkaSpecialProducerConsumerConfigExample { @@ -64,11 +64,10 @@ public class KafkaSpecialProducerConsumerConfigExample {
*/
@Bean
public ConsumerFactory<?, ?> kafkaConsumerFactory(KafkaProperties properties) {
Map<String, Object> consumererProperties = properties
.buildConsumerProperties();
consumererProperties.put(CommonClientConfigs.METRIC_REPORTER_CLASSES_CONFIG,
Map<String, Object> consumerProperties = properties.buildConsumerProperties();
consumerProperties.put(CommonClientConfigs.METRIC_REPORTER_CLASSES_CONFIG,
MyConsumerMetricsReporter.class);
return new DefaultKafkaConsumerFactory<Object, Object>(consumererProperties);
return new DefaultKafkaConsumerFactory<Object, Object>(consumerProperties);
}
}

Loading…
Cancel
Save