Commit 8ce3007a authored by duanledexianxianxian's avatar duanledexianxianxian 😁

sync

parent 63926d58
......@@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
* @author fengyuchenglun
* @version 1.0.0
*/
//@Component
@Component
public class TestConsumer {
/**
......@@ -19,7 +19,7 @@ public class TestConsumer {
* @param record the record
* @throws Exception the exception
*/
@KafkaListener(topics = "topic_first")
@KafkaListener(topics = "topic_second")
public void listen(ConsumerRecord<?, ?> record) throws Exception {
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