Controller & Kafka consumer

A controller can hold a field just as described at service section. Here, REST API can be created and supported with the most commonly used of HTTP methods such as GET, POST, PUT, DELETE.

As shown on the video, you have the possibility to specify the path variable, query param and request body. DTO can be used as request body by inputing its name on the input field.

Using kafka nodes that can act as kafka listener, you can specify the topic and select the message body whether using any DTO or Model defined or simply using default value is string

image

Spring boot and Java code generator. It helps Java Spring developer to generate code by simple drag and drop the component using the designer tool

© Copyright Codern.io. All Rights Reserved