@RequestBody is getting null values

Check the @RequestBody import,

wrong that will cause the problem in most cases.

import io.swagger.v3.oas.annotations.parameters.RequestBody;

to solve problem It should be

import org.springframework.web.bind.annotation.RequestBody;

Leave a Comment