src/main/resources/application.yaml
, substituting your cluster bootstrap servers endpoint and the API key and secret that you just created for the username and password fields, respectively, of the spring.kafka.properties.sasl.jaas.config
value.
SpringBootApplication
annotation for ease of use, auto-configuration and component scanning. Paste the following Java code into a file located at src/main/java/examples/SpringBootWithKafkaApplication.java
.