# Testing Spring Boot Kafka Listener using Testcontainers


<!-- Source: https://github.com/testcontainers/tc-guide-testing-spring-boot-kafka-listener -->

In this guide, you will learn how to:

- Create a Spring Boot application with Kafka integration
- Implement a Kafka listener and persist data in a MySQL database
- Test the Kafka listener using Testcontainers and Awaitility

## Prerequisites

- Java 17+
- Maven or Gradle
- A Docker environment supported by Testcontainers

> [!NOTE]
> If you're new to Testcontainers, visit the
> [Testcontainers overview](https://testcontainers.com/getting-started/) to learn more about
> Testcontainers and the benefits of using it.

