Commit 8ce3007a authored by duanledexianxianxian's avatar duanledexianxianxian 😁

sync

parent 63926d58
...@@ -10,7 +10,7 @@ import org.springframework.stereotype.Component; ...@@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
* @author fengyuchenglun * @author fengyuchenglun
* @version 1.0.0 * @version 1.0.0
*/ */
//@Component @Component
public class TestConsumer { public class TestConsumer {
/** /**
...@@ -19,7 +19,7 @@ public class TestConsumer { ...@@ -19,7 +19,7 @@ public class TestConsumer {
* @param record the record * @param record the record
* @throws Exception the exception * @throws Exception the exception
*/ */
@KafkaListener(topics = "topic_first") @KafkaListener(topics = "topic_second")
public void listen(ConsumerRecord<?, ?> record) throws Exception { public void listen(ConsumerRecord<?, ?> record) throws Exception {
System.out.printf("topic = %s, offset = %d, value = %s \n", record.topic(), record.offset(), record.value()); System.out.printf("topic = %s, offset = %d, value = %s \n", record.topic(), record.offset(), record.value());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment