Spring boot rest requestbody and @valid not working when object is null/empty
I am trying to apply not null validation on an attribute of my request which is instructedAmount but it is not working. I have a Spring Boot (V2.3.0.RELEASE) application with the following endpoints: @Validated public class TestController { @PostMapping(value = "/test/pay") public ResponseEntity<IPSPaymentResponse> validatePayt(@Valid @RequestBody InstantPaymentRequest instantPaymentRequest) { log.debug("start validatePayment method {}", instantPaymentRequest); …. The… Read More Spring boot rest requestbody and @valid not working when object is null/empty