Skip to content

Commit 9aab9f6

Browse files
committed
GH-1817: Fix typo; revert unintended sample changes
1 parent ad1ae60 commit 9aab9f6

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

samples/sample-04/src/main/java/com/example/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static void main(String[] args) {
4545
}
4646

4747
@RetryableTopic(attempts = "5", backoff = @Backoff(delay = 2_000, maxDelay = 10_000, multiplier = 2))
48-
@KafkaListener(id = "fooGroup", topics = "topic4", clientIdPrefix = "test")
48+
@KafkaListener(id = "fooGroup", topics = "topic4")
4949
public void listen(String in, @Header(KafkaHeaders.RECEIVED_TOPIC) String topic,
5050
@Header(KafkaHeaders.OFFSET) long offset) {
5151

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
logging.level.root=off
2-
logging.level.org.apache.kafka=info
32
logging.level.com.example=info
43
#logging.level.org.springframework.kafka=error

spring-kafka-docs/src/main/asciidoc/kafka.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ void listen(Object in, @Header(KafkaHeaders.RECORD_METADATA) ConsumerRecordMetad
18681868

18691869
Starting with version 2.7.2, you can now programmatically modify annotation attributes before the container is created.
18701870
To do so, add one or more `KafkaListenerAnnotationBeanPostProcessor.AnnotationEnhancer` to the application context.
1871-
`AnnotationEnhancer` is a `BiFunction<Map<String, Object>, AnnotatedElement, Map<String, Object>` and must return a a map of attributes.
1871+
`AnnotationEnhancer` is a `BiFunction<Map<String, Object>, AnnotatedElement, Map<String, Object>` and must return a map of attributes.
18721872
The attribute values can contain SpEL and/or property placeholders; the enhancer is called before any resolution is performed.
18731873
If more than one enhancer is present, and they implement `Ordered`, they will be invoked in order.
18741874

0 commit comments

Comments
 (0)