Skip to content

Instantly share code, notes, and snippets.

@JorgenRingen
Created July 25, 2019 08:48
Show Gist options
  • Save JorgenRingen/e40576c5e7ed113479e258866a5d4c2f to your computer and use it in GitHub Desktop.
Save JorgenRingen/e40576c5e7ed113479e258866a5d4c2f to your computer and use it in GitHub Desktop.
Consume partition with initial offset using spring-boot-kafka
@KafkaListener(topics = KafkaSpringBootHelloWorldApplication.TOPIC_USERS, groupId = "${groupId}",
topicPartitions = {
@TopicPartition(
topic = KafkaSpringBootHelloWorldApplication.TOPIC_USERS,
partitionOffsets = @PartitionOffset(partition = "0", initialOffset = "0"))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment