@Valid vs @Validated in Spring Boot: A Quick Comparison Table and 4 Cases Where the Results Differ
A quick comparison table for deciding between @Valid and @Validated in Spring Boot 3.x. Using MockMvc test code and the official documentation, it walks through 4 cases: groups, method validation in the Service layer, cascading into nested DTOs and List elements, and @Min on @RequestParam. For each case it shows what gets validated and which exception is thrown (MethodArgumentNotValidException, HandlerMethodValidationException, or ConstraintViolationException), and whether the response is a 400 or a 500.