Skip to content

Instantly share code, notes, and snippets.

@ankitthakur
Created September 3, 2018 13:15
Show Gist options
  • Save ankitthakur/a53652665588d181fe34a1e925902a09 to your computer and use it in GitHub Desktop.
Save ankitthakur/a53652665588d181fe34a1e925902a09 to your computer and use it in GitHub Desktop.
spring kafka properties
# kafkahost:kafkaport
spring.cloud.stream.kafka.binder.brokers="localhost:9092"
# kafkatopic1 is the stream, will create, and the stream will get the destination or topic name from here
# test is the topic name
spring.cloud.stream.bindings.kafkatopic1.destination=test
# kafkatopic1 is the stream, where we will define in what sort, we will send data
spring.cloud.stream.bindings.kafkatopic1.content-type=application/json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment