Spring Boot Project using Kafka and R2DBC (Part IV)
Now, let’s create the web classes that will be used to map requests to domain classes.
DTO Classes
The PersonDTO class:
The ErrorDTO class:
Mapper Classes
The PersonWebMapper class:
Controller Classes
The SavePersonController class:
The ExceptionHandlerController class:
Configuration Classes
To configure some features such as pagination, we can create the following class: