Last active
September 16, 2020 18:48
-
-
Save itzg/1900b6ba342393771ba42d7978ec3638 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import lombok.extern.slf4j.Slf4j; | |
| import org.springframework.kafka.annotation.KafkaListener; | |
| import org.springframework.stereotype.Service; | |
| @Service | |
| @Slf4j | |
| public class ConsumerService { | |
| @KafkaListener(topics = "my-topic") | |
| public void consumeMessage(String message) { | |
| log.info("Got message : {}", message); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment