Create a new Spring Boot project in IntelliJ IDEA, with Spring initializr. Change the debug/run configuration to specify a different port for the Tomcat instance that Spring Boot will use. This project will have a kafka dependency, and we'll set up a simple Java class to read from a Kafka topic, by using the @KafkaListener annotation. Then, demo the application with the IntelliJ Debugger by adding an item to the topic, and watch it get consumed.
To see more, explore the Spring Boot Microservices playlist at: • IntelliJ IDEA, Git, Github, and .giti...
You can also find the source code for this example on GitHub, at: https://github.com/discospiff/SpringB...