Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
c700cf28
Commit
c700cf28
authored
Dec 21, 2016
by
Artem Bilan
Committed by
Phillip Webb
Dec 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in Kafka sample
parent
28474aa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
KafkaSpecialProducerConsumerConfigExample.java
...boot/kafka/KafkaSpecialProducerConsumerConfigExample.java
+3
-4
No files found.
spring-boot-docs/src/main/java/org/springframework/boot/kafka/KafkaSpecialProducerConsumerConfigExample.java
View file @
c700cf28
...
@@ -64,11 +64,10 @@ public class KafkaSpecialProducerConsumerConfigExample {
...
@@ -64,11 +64,10 @@ public class KafkaSpecialProducerConsumerConfigExample {
*/
*/
@Bean
@Bean
public
ConsumerFactory
<?,
?>
kafkaConsumerFactory
(
KafkaProperties
properties
)
{
public
ConsumerFactory
<?,
?>
kafkaConsumerFactory
(
KafkaProperties
properties
)
{
Map
<
String
,
Object
>
consumererProperties
=
properties
Map
<
String
,
Object
>
consumerProperties
=
properties
.
buildConsumerProperties
();
.
buildConsumerProperties
();
consumerProperties
.
put
(
CommonClientConfigs
.
METRIC_REPORTER_CLASSES_CONFIG
,
consumererProperties
.
put
(
CommonClientConfigs
.
METRIC_REPORTER_CLASSES_CONFIG
,
MyConsumerMetricsReporter
.
class
);
MyConsumerMetricsReporter
.
class
);
return
new
DefaultKafkaConsumerFactory
<
Object
,
Object
>(
consumer
er
Properties
);
return
new
DefaultKafkaConsumerFactory
<
Object
,
Object
>(
consumerProperties
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment